Nevyn Bengtsson nevyn.jpg@gmail.com
SPStackedNavigationController is a UINavigationController drop-in replacement, which represents its content in stacks of panes, rather than one at a time. This interface trend was started by Loren Brichter in Tweetie for iPad, and has spread to many apps in many variations since.
There are two main advantages to this approach:
The main drawback is that you should no longer use horizontal gestures within view controllers, as they will interfere with navigation, or the other way around. This is already true in UINavigationController since iOS 7 though.
In our implementation, a page can either be "full size" and thus cover the whole width of the parent container (which we use for the root view controllers in our stacks), or half-size (exactly two will fit in landscape, or one and a half in portrait).
Spotify used to use this style for navigation in their iPad app. This code was used for several years at Spotify and should be considered very stable. In 2017, Spotify stopped using it internally, and I (Nevyn, the original author of the class) am maintaining this fork in their stead.
In addition, SPSideTabController is a drop-in replacement for UITabBarController, but with tabs along the left side rather than along the bottom. This is one of the UIs that are commonly combined with a stacked navigation.
Extra tab bar items can be added along the bottom (e g for "Settings"), and the whole bottom of the screen can have an attachment, which we use to show the currently playing track in Spotify.
Use CocoaPods, or...
See Examples/StackExample for some example usage.
1.0: Initial release