Country

struct Country : Equatable

A simple data countainer representing a country or political region.

  • ID
  • id

    The country identifier. Equals the initializing country code.

    Declaration

    Swift

    let id: ID
  • The localized name of the country using the current locale.

    Declaration

    Swift

    let localizedName: String
  • The flag of the current country, if present.

    Declaration

    Swift

    let flag: UIImage?
  • Initialize a country with a given. If no valid countryCode is given the initalizer returns nil.

    Declaration

    Swift

    init?(countryCode: ID)

    Parameters

    countryCode

    An ISO 3166 (Alpha-2) country two-digit code. Examples: “DE”, “FR”

  • Undocumented

    Declaration

    Swift

    static func defaultCountry() -> Country