Skip to content

Commit 1d2d2bb

Browse files
committed
fix(ios): use fullScreenCover for native presentation animation
1 parent 61c6709 commit 1d2d2bb

1 file changed

Lines changed: 9 additions & 10 deletions

File tree

TableProMobile/TableProMobile/TableProMobileApp.swift

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff 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",

0 commit comments

Comments
 (0)