Skip to content

Instantly share code, notes, and snippets.

@vialyx
Created August 11, 2018 18:33
Show Gist options
  • Save vialyx/61a538f7477193bb9e106819913a3e69 to your computer and use it in GitHub Desktop.
Save vialyx/61a538f7477193bb9e106819913a3e69 to your computer and use it in GitHub Desktop.
switch error {
case .empty:
print("Please provide email")
case .noDomain:
print("Add domain")
case .invalid:
print("Entered email looks like invaid")
}
if signupError == .invalid {
print("Entered email looks like invaid")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment