Created
August 5, 2018 23:03
-
-
Save Arrlindii/c38a9554169aa17c96dc23cae7fc0721 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| func validate() { | |
| do { | |
| let email = try emailTextField.validatedText(validationType: ValidatorType.email) | |
| } catch(let error) { | |
| showAlert(for: (error as! ValidationError).message) | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment