SwiftUI: NavigationSplitView

Learn to use the new NavigationSplitView introduced in iOS 16

Alessandro Manilii
5 min readDec 30, 2022
Photo by Jason Steffan: https://www.pexels.com/it-it/foto/fotografia-di-paesaggio-di-montagna-verde-e-grigia-2125075/

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…

--

--

Alessandro Manilii

I’m an Italian professional iOS Developer, iOS Tech Lead at Wakala — Join Medium from the following link: https://medium.com/@alessandromanilii/membership