- 
                Notifications
    You must be signed in to change notification settings 
- Fork 487
refactor: AuthPickerView sheet and Navigation stack #1285
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: development
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks really good so far! Hopefully the changes I've requested aren't too drastic
        
          
                FirebaseSwiftUI/FirebaseAuthSwiftUI/Sources/Views/AuthPickerView.swift
              
                Outdated
          
            Show resolved
            Hide resolved
        
              
          
                FirebaseSwiftUI/FirebaseAuthSwiftUI/Sources/Views/AuthPickerView.swift
              
                Outdated
          
            Show resolved
            Hide resolved
        
              
          
                FirebaseSwiftUI/FirebaseAuthSwiftUI/Sources/Views/PrivacyTOCsView.swift
              
                Outdated
          
            Show resolved
            Hide resolved
        
              
          
                samples/swiftui/FirebaseSwiftUIExample/FirebaseSwiftUIExample/App/ContentView.swift
              
                Outdated
          
            Show resolved
            Hide resolved
        
              
          
                samples/swiftui/FirebaseSwiftUIExample/FirebaseSwiftUIExample/App/ContentView.swift
              
                Outdated
          
            Show resolved
            Hide resolved
        
      | if authService.authenticationState == .unauthenticated { | ||
| Text("Not Authenticated") | ||
| } else { | ||
| Text("Authenticated - \(authService.currentUser?.email ?? "")") | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| Text("Authenticated - \(authService.currentUser?.email ?? "")") | |
| Text("Authenticated - \(authService.currentUser?.email ?? "")") | |
| Button { | |
| authService.isPresented = true // Reopen the sheet | |
| } label: { | |
| Text("Manage Account") | |
| } | |
| .buttonStyle(.bordered) | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for purpose of demonstration, let's show how to access the SignedInView so the user can manager their account
Proof of Concept
.sheet(). This means:usersApp) is always visible underneath.Developer Notes
Simulator.Screen.Recording.-.iPhone.17.Pro.Max.-.2025-10-30.at.17.03.42.mov