Skip to content

Instantly share code, notes, and snippets.

@boominadhaprakash
Created May 7, 2018 09:12
Show Gist options
  • Save boominadhaprakash/035ef07c324ddcb0c55bb3043c536fa8 to your computer and use it in GitHub Desktop.
Save boominadhaprakash/035ef07c324ddcb0c55bb3043c536fa8 to your computer and use it in GitHub Desktop.
import Foundation
import UIKit
struct StoryboardIdentifiers {
static let ViewController1 = "ViewController1"
static let ViewController2 = "ViewController2"
static let ViewController3 = "ViewController3"
static let ViewController4 = "ViewController4"
static let ViewController5 = "ViewController5"
static let ViewController6 = "ViewController6"
static let ViewController7 = "ViewController7"
}
struct Storyboards {
static let Main = UIStoryboard.init(name: "Main", bundle: nil)
}
extension UIStoryboard {
func loadInstance(with identifier:String)->BaseViewController {
return self.instantiateViewController(withIdentifier: identifier) as! BaseViewController
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment