Skip to content

Instantly share code, notes, and snippets.

@vialyx
Created August 11, 2018 18:37
Show Gist options
  • Save vialyx/0e72fb0e778fe38ec0d872e5c2f09db6 to your computer and use it in GitHub Desktop.
Save vialyx/0e72fb0e778fe38ec0d872e5c2f09db6 to your computer and use it in GitHub Desktop.
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