Skip to content

LeBzul/Navigation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Simplified use of storyboard

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages