Created
May 1, 2022 11:42
-
-
Save eiskalteschatten/b3dc73787a53a379cf84859cda3c8ee0 to your computer and use it in GitHub Desktop.
Example code showing how to show all three columns of a SwiftUI NavigationView by default on iPad
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extension UISplitViewController { | |
open override func viewDidLoad() { | |
super.viewDidLoad() | |
self.show(.primary) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment