Name
struct Name : Hashable
extension EUDCC.Name: Codable
The EUDCC Person Name
-
The first name
Declaration
Swift
public let firstName: String -
The standardised first name
Declaration
Swift
public let standardisedFirstName: String -
The last name
Declaration
Swift
public let lastName: String -
The standardised last name
Declaration
Swift
public let standardisedLastName: String
-
Creates a new instance of
EUDCC.PersonDeclaration
Swift
public init( firstName: String, standardisedFirstName: String, lastName: String, standardisedLastName: String )Parameters
firstNameThe first name
standardisedFirstNameThe standardised first name
lastNameThe last name
standardisedLastNameThe standardised last name
-
Retrieve the formatted full name
Declaration
Swift
func formatted( using formatter: PersonNameComponentsFormatter = .init() ) -> StringParameters
formatterThe PersonNameComponentsFormatter. Default value
.init()Return Value
The formatted full name
Name Structure Reference