Hello,
New iOS coder here! I am wondering if there is a way that I can use NavigationView without the iPad version of the app creating a sidebar. I am making an application that does not make since to have a sidebar on it.
Again, I'm a complete beginner so a detailed explanation would be much appreciated!
Peace!
New iOS coder here! I am wondering if there is a way that I can use NavigationView without the iPad version of the app creating a sidebar. I am making an application that does not make since to have a sidebar on it.
Again, I'm a complete beginner so a detailed explanation would be much appreciated!
Peace!
If you mean having only one view showing at a time, like on iPhone (not master-detail), then you can use StackNavigationViewStyle().
Use it like this as a modifier on the NavigationView:A navigation view style represented by a view stack that only shows a single top view at a time.
Code Block Swift NavigationView { ... } .navigationViewStyle(StackNavigationViewStyle())