Skip to content

Instantly share code, notes, and snippets.

@farzadshbfn
Last active May 4, 2020 12:43
Show Gist options
  • Save farzadshbfn/fcc6d54574fcc33eb617e94bd7709804 to your computer and use it in GitHub Desktop.
Save farzadshbfn/fcc6d54574fcc33eb617e94bd7709804 to your computer and use it in GitHub Desktop.
typealias UserId = String
struct User {
let id: UserId
let cellNumber: CellNumber
let isRegistered: Bool
let profile: UserProfile?
}
struct UserProfile {
let name: String
let lastName: String
let email: Email?
}
struct CellNumber {
let digits: String
}
struct Email {
let address: String
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment