Skip to content

Instantly share code, notes, and snippets.

@farzadshbfn
Last active May 4, 2020 12:43
Show Gist options
  • Save farzadshbfn/8e1e5bb5799fdc2e776bc0547b8f8f45 to your computer and use it in GitHub Desktop.
Save farzadshbfn/8e1e5bb5799fdc2e776bc0547b8f8f45 to your computer and use it in GitHub Desktop.
struct User {
typealias Id = String
let id: Id
let cellNumber: CellNumber
let status: Status
enum Status {
case notRegistered
case registered(profile: Profile)
}
struct Profile {
let name: String
let lastName: String
let email: Email?
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment