File tree Expand file tree Collapse file tree
FirebaseSwiftUI/FirebaseFacebookSwiftUI/Sources/Views Expand file tree Collapse file tree Original file line number Diff line number Diff 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) {
You can’t perform that action at this time.
0 commit comments