DocumentType

An enumeration containing the supported document types

Declaration

@objc public enum DocumentType, CaseIterable : Int {
    case DriversLicense
    case GreenBook
    case IDCard
    case Passport
    case Visa
    
    case FirearmsLicense
    case IntegratedBarID
    case PhilHealthInsuranceCard
    case PostalID
    case ProfessionalRegulationCommissionCard
    case SeafarerIdentificationDocument
    case SeafarerIdentificationRecordBook
    case SocialSecurityID
    case UnifiedMultipurposeID
    
    public var stringValue: String { get }
}

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

Summary

Cases

Public variables

Cases

DriversLicense

case DriversLicense

The document is a drivers license.

GreenBook

case GreenBook

The document is a green book.

IDCard

case IDCard

The document is an ID card.

Passport

case Passport

The document is a passport.

FirearmsLicense

case FirearmsLicense

The document is a firearms license.

IntegratedBarID

case IntegratedBarID

The document is an integrated bar ID.

PhilHealthInsuranceCard

case PhilHealthInsuranceCard

The document is a phil health insurance card.

PostalID

case PostalID

The document is a postal ID.

ProfessionalRegulationCommissionCard

case ProfessionalRegulationCommissionCard

The document is a professional regulation commission card.

SeafarerIdentificationDocument

case SeafarerIdentificationDocument

The document is a seafarer identification document.

SeafarerIdentificationRecordBook

case SeafarerIdentificationRecordBook

The document is a seafarer identification record book.

SocialSecurityID

case SocialSecurityID

The document is a social security ID.

UnifiedMultipurposeID

case UnifiedMultipurposeID

The document is a unified multipurpose ID.

Visa

case Visa

The document is a visa.

Public variables

stringValue

public var stringValue: String { get }

Example: "Drivers License"

Returns the case name, separated by spaces, in string format.

Where this is used

Last updated