Table of Contents
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).
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.
Read more article about SwiftUI, iOS, beta, UISplitViewController, or see all available topic
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 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.