A simple Xcode project template showing how to configure a split view controller to prefer to show both the primary and secondary view controllers. Both Swift and Objective-C versions are included.
For a more detailed explanation see Split View Controller Display Modes