Created
August 11, 2018 18:37
-
-
Save vialyx/0e72fb0e778fe38ec0d872e5c2f09db6 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
enum EmailValidationError: CaseIterable { | |
// TODO: - Cases | |
case empty | |
// TODO: - Cases can be declared on a single line | |
case noDomain, invalid | |
} | |
print("All cases: \(EmailValidationError.allCases)") | |
// TODO: - Just print all enum cases |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment