Skip to content

Commit 8880298

Browse files
chore: refactor FB button
1 parent 5201e52 commit 8880298

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

FirebaseSwiftUI/FirebaseFacebookSwiftUI/Sources/Views/FacebookButtonView.swift

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,6 @@ public struct FacebookButtonView {
125125
get: { self.limitedLogin },
126126
set: { newValue in
127127
let trackingStatus = ATTrackingManager.trackingAuthorizationStatus
128-
129128
if newValue == true, trackingStatus != .authorized {
130129
self.showUserTrackingAlert = true
131130
} else {
@@ -173,6 +172,7 @@ extension FacebookButtonView: View {
173172
dismissButton: .default(Text("OK"))
174173
)
175174
}
175+
176176
HStack {
177177
Text("Authorize User Tracking")
178178
.font(.footnote)
@@ -182,8 +182,11 @@ extension FacebookButtonView: View {
182182
requestTrackingPermission()
183183
}
184184
Toggle(isOn: limitedLoginBinding) {
185-
Text("Limited Login")
186-
.foregroundColor(.green)
185+
HStack {
186+
Spacer() // This will push the text to the left of the toggle
187+
Text("Limited Login")
188+
.foregroundColor(.blue)
189+
}
187190
}
188191
.toggleStyle(SwitchToggleStyle(tint: .green))
189192
.alert(isPresented: $showUserTrackingAlert) {

0 commit comments

Comments
 (0)