ViewControllerNavigatior
Moves to a specific ViewController in any iOS ViewStack situation.
Usage
move to RootViewController
ViewControllerNavigator.shared.moveRootViewController()
move to Specific ViewController
ViewControllerNavigator.shared.move(viewController: TabBarController())
move to Specific ViewController Class
ViewControllerNavigator.shared.move(class: TabBarController.self)
with Completion
ViewControllerNavigator.shared.move(class: TabBarController.self) { (tabBarController) in
tabBarController.selectedIndex = 2
}
Installation
CocoaPods (iOS 8+)
platform :ios, '8.0'
use_frameworks!
target 'MyApp' do
pod 'ViewControllerNavigator'
end
Carthage (iOS 8+)
github "k-lpmg/ViewControllerNavigator"