SouthAfricaIdentityNumber

A base class containing details about a South African identity number

Declaration

@objc final public class SouthAfricaIdentityNumber : NSObject {
    @objc final public var identityNumber: String? { get }
    @objc final public var dateOfBirth: Date? { get }
    @objc final public var sex: Sex { get }
    @objc final public var citizenship: CitizenshipType { get }
    @objc final public var aDigit: Int { get }
    @objc final public var checkDigit: Int { get }
}

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

Summary

Public variables

Name

Type

Description

String?

The identity number for the South African identity number.

Date?

The date of birth for the South African identity number.

The sex for the South African identity number.

The citizenship type for the South African identity number.

Int

The A digit for the South African identity number.

Int

The check digit for the South African identity number.

Public variables

identityNumber

@objc final public var identityNumber: String? { get }

Example: "8801235111088"

The identity number for the South African identity number.

dateOfBirth

@objc final public var dateOfBirth: Date? { get }

Example: 1988/01/23

The date of birth for the South African identity number.

sex

@objc final public var sex: Sex { get }

Example: Sex.Male

The sex for the South African identity number.

citizenship

@objc final public var citizenship: CitizenshipType { get }

Example: CitizenshipType.Citizen

The citizenship type for the South African identity number.

aDigit

@objc final public var aDigit: Int { get }

Example: 8

The A digit for the South African identity number.

checkDigit

@objc final public var checkDigit: Int { get }

Example: 8

The check digit for the South African identity number.

See also

Last updated