UISplitViewController in SwiftUI

⋅ 1 min read ⋅ SwiftUI iOS beta UISplitViewController

Table of Contents

The latest release of Xcode 11 Beta 3 brings some change to SwiftUI components and also bring new a new(old) layout to NavigationView, UISplitViewController.

This layout has been demonstrated at the end of Session 216 SwiftUI Essentials, but it didn't work in beta 1 and 2. In this beta 3, Apple secretly brought this layout to life (Not fully functional though).

NavigationView {
List {
NavigationLink("Go to detail", destination: Text("New Detail"))
Text("Placeholder for Detail")

I play around with .navigationViewStyle and complex destination's view, but can't make it work with a complex layout, it only supports very basic structure where the master view is a list and detail view is a leaf view. Maybe there is a way, but I will just wait for a proper document in the next release.

You can easily support sarunw.com by checking out this sponsor.

Sponsor sarunw.com and reach thousands of iOS developers.


Read more article about SwiftUI, iOS, beta, UISplitViewController, or see all available topic

Enjoy the read?

If you enjoy this article, you can subscribe to the weekly newsletter.
Every Friday, you'll get a quick recap of all articles and tips posted on this site. No strings attached. Unsubscribe anytime.

Feel free to follow me on Twitter and ask your questions related to this post. Thanks for reading and see you next time.

If you enjoy my writing, please check out my Patreon https://www.patreon.com/sarunw and become my supporter. Sharing the article is also greatly appreciated.

Become a patron Buy me a coffee Tweet Share
SwiftUI changes in Xcode 11 Beta 3

Highlight changes for SwiftUI in beta 3

Better dependency injection for Storyboards in iOS13

Say goodbye to optional properties in your view controllers. In iOS13, you can inject those properties at a time of view controller creation.

← Home