Skip to content
Snippets Groups Projects

Pop to root instead of full screen overlay

Merged Apollo Zhu requested to merge zhuzhiyu/better-navigation into main
7 files
+ 44
29
Compare changes
  • Side-by-side
  • Inline
Files
7
@@ -101,12 +101,10 @@ struct GameView: View {
}
.fullScreenCover(isPresented: $isPresented) {
NavigationStack {
if humansWin {
HumansWinView()
} else {
InfectorsWinView()
}
if humansWin {
HumansWinView()
} else {
InfectorsWinView()
}
}
}
Loading