-
-
Save ranmyfriend/b1b02f67e8889958a912de05a45c9250 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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