File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed
samples/swiftui/FirebaseSwiftUIExample/FirebaseSwiftUIExample Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change 7
7
8
8
import SwiftUI
9
9
import SwiftData
10
+ import FirebaseAuthSwiftUI
11
+ import FirebaseCore
12
+ import FirebaseAuth
10
13
11
14
@main
12
15
struct FirebaseSwiftUIExampleApp : App {
16
+ init ( ) {
17
+ FirebaseApp . configure ( )
18
+ }
13
19
var sharedModelContainer : ModelContainer = {
14
20
let schema = Schema ( [
15
21
Item . self,
@@ -25,7 +31,11 @@ struct FirebaseSwiftUIExampleApp: App {
25
31
26
32
var body : some Scene {
27
33
WindowGroup {
28
- ContentView ( )
34
+ // Put this at top level so user can control it in their app
35
+ NavigationView {
36
+ let firebaseAuthUI = FirebaseAuthSwiftUI ( )
37
+ FUIAuthView ( FUIAuth: firebaseAuthUI)
38
+ }
29
39
}
30
40
. modelContainer ( sharedModelContainer)
31
41
}
You can’t perform that action at this time.
0 commit comments