Country
struct Country : Equatable
A simple data countainer representing a country or political region.
-
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
countryCodeis given the initalizer returnsnil.Declaration
Swift
init?(countryCode: ID)Parameters
countryCodeAn ISO 3166 (Alpha-2) country two-digit code. Examples: “DE”, “FR”
-
Undocumented
Declaration
Swift
static func defaultCountry() -> Country