Created
January 18, 2017 12:13
-
-
Save bobleesj/9b48b1233a18f5ad8e89fdd7e37e1f61 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
class BuzzableTextField: UITextField, Buzzable {} | |
class BuzzableButton: UIButton, Buzzable {} | |
class BuzzableImageView: UIImageView, Buzzable {} | |
class BuzzablePoppableLabel: UILabel, Buzzable, Poppable {} | |
class LoginViewController: UIViewController { | |
@IBOutlet weak var passcodTextField: BuzzableTextField! | |
@IBOutlet weak var loginButton: BuzzableButton! | |
@IBOutlet weak var errorMessageLabel: BuzzablePoppableLabel! | |
@IBOutlet weak var profileImageView: BuzzableImageView! | |
@IBAction func didTabLoginButton(_ sender: UIButton) { | |
passcodTextField.buzz() | |
loginButton.buzz() | |
errorMessageLabel.buzz() | |
errorMessageLabel.pop() | |
profileImageView.buzz() | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment