Country

An enumeration containing the supported countries and varies details

Declaration

@objc public enum Country : Int, CaseIterable {
    case Kenya
    case Philippines
    case SouthAfrica
    case Zimbabwe
    
    public var fullName: String { get }
    public var idCardCountryCode: String { get }
    public var passportCountryCode: String { get }
    public var isoCode: String { get }
    public var supportedDocuments: [DocumentType] { get }
}

Only relevant details are shown, boilerplate or standard Swift generated code is omitted

Summary

Cases

Name

Description

Indicates the country is Kenya.

Indicates the country is Philippines.

Indicates the country is South Africa.

Indicates the country is Zimbabwe.

Public variables

Name

Type

Description

String

Returns the name of the country.

String

Returns the ID card code of the country.

String

Returns the passport code of the country.

String

Returns the ISO code of the country.

Returns the document types that we support for the specified country.

Cases

Kenya

case Kenya

Indicates the country is Kenya.

Philippines

case Philippines

Indicates the country is Philippines.

SouthAfrica

case SouthAfrica

Indicates the country is South Africa.

Zimbabwe

case Zimbabwe

Indicates the country is Zimbabwe.

Public variables

fullName

public var fullName: String { get }

Example: "South Africa"

Returns the name of the country.

idCardCountryCode

public var idCardCountryCode: String { get }

Example: "RSA"

Returns the ID card code of the country.

passportCountryCode

public var passportCountryCode: String { get }

Example: "ZAF"

Returns the passport code of the country.

isoCode

public var isoCode: String { get }

Example: "ZA"

Returns the ISO code of the country.

supportedDocuments

public var supportedDocuments: [DocumentType] { get }

Example: [DocumentType.DriversLicense, DocumentType.IDCard, DocumentType.Passport]

Returns the document types that we support for the specified country.

See also

Where this is used

Last updated