Commit 47222cae by Dima Bart

Simplify switch on optional value.

parent 162145f2
......@@ -40,11 +40,11 @@ class AccountViewController: UIViewController {
//
override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) {
switch segue.identifier {
case let login where login == "loginSegue":
case .Some("loginSegue"):
self.loginViewController = segue.destinationViewController as! LoginViewController
self.loginViewController.delegate = self
case let signup where signup == "signupSegue":
case .Some("signupSegue"):
self.signupViewController = segue.destinationViewController as! SignupViewController
self.signupViewController.delegate = self
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment