Country

An enumeration containing the supported countries and varies details

Declaration

@objc public enum Country : Int, CaseIterable {
    case Ghana
    case Kenya
    case Malawi
    case Mozambique
    case Philippines
    case SouthAfrica
    case Uganda
    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 Ghana.

Indicates the country is Kenya.

Indicates the country is Malawi.

Indicates the country is Mozambique.

Indicates the country is Philippines.

Indicates the country is South Africa.

Indicates the country is Uganda.

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

Ghana

case Ghana

Indicates the country is Ghana.

Kenya

case Kenya

Indicates the country is Kenya.

Malawi

case Malawi

Indicates the country is Malawi.

Mozambique

case Mozambique

Indicates the country is Mozambique.

Philippines

case Philippines

Indicates the country is Philippines.

SouthAfrica

case SouthAfrica

Indicates the country is South Africa.

Uganda

case Uganda

Indicates the country is Uganda.

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