Closed marcelofabri closed 9 years ago
The goal of this PR is making implementing prepareForSegue easier.
prepareForSegue
To do so, some changes were necessary:
SegueProtocol
Equatable
UIStoryboardSegue
identifier
Now, you can do something like this:
override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) { if segue == ViewController.Segue.MySegue { } }
good job
The goal of this PR is making implementing
prepareForSegue
easier.To do so, some changes were necessary:
SegueProtocol
inherits fromEquatable
UIStoryboardSegue
implementsSegueProtocol
(identifier
is now optional to matchUIStoryboardSegue
declaration)Now, you can do something like this: