Document

An enumeration containing the supported documents

Declaration

@objc public enum Document : Int {
    case GhanaPassport
    case KenyaIDCard
    case KenyaPassport
    case MalawiPassport
    case MozambiqueIDCard
    case MozambiquePassport
    case PhilippinesDriversLicense
    case PhilippinesIDCard
    case PhilippinesPassport
    case SouthAfricaDriversLicense
    case SouthAfricaGreenBook
    case SouthAfricaIDCard
    case SouthAfricaPassport
    case ZimbabwePassport
    
    public var country: Country { get }
    public var documentType: DocumentType { get }
}

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

Summary

Cases

Name

Description

Indicates the document is a Ghana Passport.

Indicates the document is a Kenya ID Card.

Indicates the document is a Kenya Passport.

Indicates the document is a Malawi Passport.

Indicates the document is a Mozambique ID Card.

Indicates the document is a Mozambique Passport.

Indicates the document is a Philippines Drivers License.

Indicates the document is a Philippines ID Card.

Indicates the document is a Philippines Passport.

Indicates the document is a South Africa Drivers License.

Indicates the document is a South Africa Green Book.

Indicates the document is a South Africa ID Card.

Indicates the document is a South Africa Passport.

Indicates the document is a Zimbabwe Passport.

Public variables

Name

Type

Description

Returns the country of the document.

Returns the document type of the document.

Cases

GhanaPassport

case GhanaPassport

Indicates the document is a Ghana Passport.

KenyaIDCard

case KenyaIDCard

Indicates the document is a Kenya ID Card.

KenyaPassport

case KenyaPassport

Indicates the document is a Kenya Passport.

MalawiPassport

case MalawiPassport

Indicates the document is a Malawi Passport.

MozambiqueIDCard

case MozambiqueIDCard

Indicates the document is a Mozambique ID Card.

MozambiquePassport

case MozambiquePassport

Indicates the document is a Mozambique Passport.

PhilippinesDriversLicense

case PhilippinesDriversLicense

Indicates the document is a Philippines Drivers License.

PhilippinesIDCard

case PhilippinesIDCard

Indicates the document is a Philippines ID Card.

PhilippinesPassport

case PhilippinesPassport

Indicates the document is a Philippines Passport.

SouthAfricaDriversLicense

case SouthAfricaDriversLicense

Indicates the document is a South Africa Drivers License.

SouthAfricaGreenBook

case SouthAfricaGreenBook

Indicates the document is a South Africa Green Book.

SouthAfricaIDCard

case SouthAfricaIDCard

Indicates the document is a South Africa ID Card.

SouthAfricaPassport

case SouthAfricaPassport

Indicates the document is a South Africa Passport.

ZimbabwePassport

case ZimbabwePassport

Indicates the document is a Zimbabwe Passport.

Public variables

country

public var country: Country { get }

Example: Country.SouthAfrica

Returns the country of the document.

documentType

public var documentType: DocumentType { get }

Example: DocumentType.IDCard

Returns the document type of the document.

See also

Where this is used

Last updated