Country
public struct Country
extension Country: Equatable
Country information.
Important
This is a Public Preview API. It may be changed or removed at any time.-
Declaration
Swift
public init( code: String, name: TextWithPhonetics ) throws
Parameters
code
ISO 3166-1 alpha-3 code of the country.
name
Country name.
Throws
An error of type
CountryError
.
-
ISO 3166-1 alpha-3 code of the country.
Declaration
Swift
public let code: String
-
Name of the country.
Declaration
Swift
public let name: TextWithPhonetics