ViewControllerNavigatior
Allows you to pop in any view controller stack on iOS. For example, when tab, navigation, modal, and page are stacked together, it can pops up a class or instance of a specific view controller.
Introduction
Modally
Navigating
Page
TabBar
Usage
move to RootViewController
ViewControllerNavigator.moveRootViewController()
move to Specific ViewController
ViewControllerNavigator.move(TabBarController())
move to Specific ViewController Class
ViewControllerNavigator.move(TabBarController.self)
with Completion
ViewControllerNavigator.move(TabBarController.self) { (tabBarController) in
tabBarController.selectedIndex = 2
}
Installation
CocoaPods (iOS 8+)
platform :ios, '8.0'
use_frameworks!
target '<Your Target Name>' do
pod 'ViewControllerNavigator'
end
Carthage (iOS 8+)
github "k-lpmg/ViewControllerNavigator"
LICENSE
These works are available under the MIT license. See the LICENSE file for more info.