Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
struct Contact {
var fullName: String
@EmailValidated var email: String?
var contact = Contact(fullName: "Toomas") = "invalidemail"
print( as Any) // nil = " test toomas@email.zz"
print( as Any) // nil = "toomas@email.zz"
print( as Any) // Optional("toomas@email.zz")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment