Country
public struct Country : Equatable
Country information.
-
Creates an instance with the specified country code and country name.
Throws
If a code or name is empty, the
InitializationErrorerror thrown.Declaration
Swift
public init( code: String, name: String ) throwsParameters
codeISO 3166-1 alpha-3 code of the country.
nameCountry name.
-
ISO 3166-1 alpha-3 code of the country.
Guaranteed to be non-empty.
Declaration
Swift
public let code: String -
Country name.
Guaranteed to be non-empty.
Declaration
Swift
public let name: String
-
An error that occurs during the creation of the instance.
See moreDeclaration
Swift
public enum InitializationError : Error
TomTom SDK for iOS (0.53.1)
Country