Created
July 18, 2017 03:40
-
-
Save spadafiva/d140d62e546f5c1fc0faf73b38a336bd to your computer and use it in GitHub Desktop.
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
@IBAction func secondaryButtonPressed(sender: UIButton) { | |
switch mode { | |
case .viewing: break // This button will be hidden | |
case .creating: backToSignup() // I'm not going to define the implementation for these | |
case .editing: revertTextfields() // functions here but you can imagine that it | |
// what they both would do | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment