File tree Expand file tree Collapse file tree
TableProMobile/TableProMobile Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -18,21 +18,20 @@ struct TableProMobileApp: App {
1818 WindowGroup {
1919 Group {
2020 if appState. hasCompletedOnboarding {
21- if let connection = appState. activeConnection {
22- ConnectedTabView ( connection: connection)
23- . id ( connection. id)
24- . transition ( . move( edge: . trailing) )
25- } else {
26- NavigationStack {
27- ConnectionListView ( )
28- }
29- . transition ( . move( edge: . leading) )
21+ NavigationStack {
22+ ConnectionListView ( )
3023 }
3124 } else {
3225 OnboardingView ( )
3326 }
3427 }
35- . animation ( . easeInOut( duration: 0.3 ) , value: appState. activeConnection? . id)
28+ . fullScreenCover ( item: Binding (
29+ get: { appState. activeConnection } ,
30+ set: { appState. activeConnection = $0 }
31+ ) ) { connection in
32+ ConnectedTabView ( connection: connection)
33+ . environment ( appState)
34+ }
3635 . environment ( appState)
3736 . onOpenURL { url in
3837 guard url. scheme == " tablepro " ,
You can’t perform that action at this time.
0 commit comments