Currently, in order to use the new features of UISplitViewController in iOS 14, it must be initialized using init(style:). However, as a result, the Split View can't be instantiated from a Storyboard, as its initialized with init(coder:) instead. Is there currently a workaround for this, or will it change with a future SDK release?
Using new UISplitViewController features with Interface Builder/Storyboards
There's no workaround in beta 1. We're fully aware that many people use storyboards, so please look for updates in later Xcode betas.
In the storyboard I selected the split view controller and set a run time user defined attribute of style number 2 (for 3 column mode). Then I disconnected the relation segues and instead set storyboard identifiers on them then in code I instantiated then using the identifiers and used the setViewController forColumnType method for each of the 3 columns.
To show a new Secondary you can use the showDetail segue but there doesn’t appear a way to use a segue to the Supplementary column. For that use showColumm and it works both when collapsed and separated. It might also be a better idea to use that method for showing the Secondary.
I’m hoping they add storyboard support in beta 2.
To show a new Secondary you can use the showDetail segue but there doesn’t appear a way to use a segue to the Supplementary column. For that use showColumm and it works both when collapsed and separated. It might also be a better idea to use that method for showing the Secondary.
I’m hoping they add storyboard support in beta 2.
I set one up programmatically within SceneDelegate.