Country
public struct Country : Equatable
Country information.
-
Throws
An error of the typeInitializationError
.Declaration
Swift
public init( code: String, name: TextWithPhonetics ) throws
Parameters
code
ISO 3166-1 alpha-3 code of the country.
name
Country name.
-
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
-
Errors that can be thrown during creation
See moreDeclaration
Swift
public enum InitializationError : Error