SwiftUI: NavigationSplitView
Learn to use the new NavigationSplitView introduced in iOS 16
Developing apps for iPad forces us to totally rethink the user experience of our product. I’ve seen a lot of times the same app on iPad adapted without changing anything, all stretched up… and I must be honest, it’s terrible.
The extra space given by an iPad can be used in many different clever ways… today I’ll show you how to use the new NavigationSplitView of iOS 16.
In this story I’ll deal with the next arguments:
- The Basics
- Programmatic Navigation
- Customization
- Navigation on iPhones
The Basics
NavigationSplitView is a view that creates 1 to 3 columns in order to show contents in a dynamic way.
Let’s start with it’s basic form, with just two columns, a sidebar and a detail area:
The view has to content closures to show, guess what, your contents. This is the simple…