Name

struct Name : Hashable
extension EUDCC.Name: Codable

The EUDCC Person Name

Properties

  • 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

Initializer

  • Creates a new instance of EUDCC.Person

    Declaration

    Swift

    public init(
        firstName: String,
        standardisedFirstName: String,
        lastName: String,
        standardisedLastName: String
    )

    Parameters

    firstName

    The first name

    standardisedFirstName

    The standardised first name

    lastName

    The last name

    standardisedLastName

    The standardised last name

Formatted

  • Retrieve the formatted full name

    Declaration

    Swift

    func formatted(
        using formatter: PersonNameComponentsFormatter = .init()
    ) -> String

    Parameters

    formatter

    The PersonNameComponentsFormatter. Default value .init()

    Return Value

    The formatted full name