Created
May 18, 2017 06:29
-
-
Save anonymous/0a4297de50af0d468904b929a8484349 to your computer and use it in GitHub Desktop.
the description for this gist
This file contains 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
struct ViewControllers { | |
static func MyViewController_1() -> MyViewController_1 { | |
return Storyboards.MyStoryboard_1.initialViewController() as! MyViewController_1 | |
} | |
static func MyViewController_2(data: Data) -> MyViewController_2 { | |
let vc = Storyboards.MyStoryboard_2.viewControllerWithIdentifier("MyViewController_2") as! MyViewController_2 | |
vc.data = data | |
return vc | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment