Skip to content
Simplified use of storyboard
Branch: master
Clone or download
Guillian Drouin
Guillian Drouin Move Licence
Latest commit 401c6b7 Apr 10, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Navigation.xcodeproj
Navigation
LICENSE
Navigation.swift
README.md
Storyboard.swift

README.md

Navigation

  • Simplifies UIViewController instantiation using only the controller StoryboardID.
  • Check the existence of a UIViewController in the project with the controller StoryboardID
  • Return list name (file name) of Storyboard in project
  • Return list name (StoryboardID) of UIViewController in project
  • Return list id of external storyboard reference for specific Storyboard
  • Return entry point for specific Storyboard

Installation

Import Navigation.swift and Storyboard.swift in your project (or use example project)

Usage

Return a initialised UIViewController just with Name (Name is a StoryboardId)

if let controller = Navigation.getViewController("MyController") {
self.navigationController?.pushViewController(controller, animated: true)
}

Verify if controller exist in project

if Navigation.controllerExist("MyController") {
print("MyController exist")
}

Return all storyboard name (file name)

Navigation.getAllStoryboardName()

Return all UIViewController name (StoryboardID)

Navigation.getAllViewControllerName()

Return all UIViewController name (StoryboardID) for specific Storyboard

Navigation.getAllViewController(inStoryboard: "Main")

Return Entry point name for specific Storyboard

Navigation.getEntryPoint(inStoryboard: "Main")

Return External storyboard reference name for specific Storyboard

Navigation.getExternalStoryboardReference(inStoryboard: "Main")

License

Navigation is available under the MIT license. See the LICENSE file for more info. If you use it, I'll be happy to know about it.

You can’t perform that action at this time.