UINavigationController
public extension UINavigationController
NavigationController+Navigable is used to add additional support for navigation between storyboards.
Version
1.5.0Date
06/09/2019-
Push the initial view controller of a storyboard.
Declaration
Swift
func showInitialViewController(ofStoryboard storyboardName: String, withAnimation shouldAnimate: Bool = true, initialization: ((UIViewController) -> Void) = { _ in })Parameters
nameThe name of the storyboard.
animateWhether animation should be performed or not.
initializationInitialize the view controller.
-
Push a specific view controller within the storyboard.
Declaration
Swift
func showViewController(ofStoryboard storyboardName: String? = nil, withIdentifier identifier: String, withAnimation shouldAnimate: Bool = true, initialization: ((UIViewController) -> Void) = { _ in })Parameters
storyboardNameThe name of the storyboard. Nil stands for current storyboard.
identifierThe id of the view controller.
shouldAnimateWhether animation should be performed or not.
initializationInitialize the view controller.
UINavigationController Extension Reference