ViewControllerNavigator 0.5.0

ViewControllerNavigator 0.5.0

Maintained by DongHee Kang.



  • By
  • DongHee Kang

ViewControllerNavigatior

Build Status Swift Cocoapods Carthage compatible

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

modally

Navigating

navigating

Page

page

TabBar

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.