Navigation patterns for iPhone Duo: NavigationStack vs NavigationSplitView across both displays
Swift Forums
Navigation patterns for iPhone Duo: NavigationStack vs NavigationSplitView across both displays
I'm adapting an app that uses NavigationStack with a state-driven router for iPhone Duo. The main question is how navigation should behave as the layout moves between a single display and the wider dual-display layout. My current approach switches between a stack and a split view based on size class, and both share one router: enum Route: Hashable { case detail(itemID: Int) case profile(userID: String) } @Observable final class Router { var selection: Int? // used by the sp...
0 comments
No comments yet.