krzyzanowskim / Natalie

Natalie - Storyboard Code Generator (for Swift)
http://blog.krzyzanowskim.com/2015/04/15/natalie-storyboard-code-generator/
MIT License
1.17k stars 74 forks source link

Enhancements on SegueProtocol #24

Closed marcelofabri closed 9 years ago

marcelofabri commented 9 years ago

The goal of this PR is making implementing prepareForSegue easier.

To do so, some changes were necessary:

Now, you can do something like this:

override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) {
    if segue == ViewController.Segue.MySegue {

    }
}
krzyzanowskim commented 9 years ago

good job