CreationKit Documentation

Enumeration Mask

public enum Mask  

Defines all the types of input masks that CreationKit supports for input fields. There is also a custom case incase you need to provide your own custom mask that isn't supported already by CreationKit.

Enumeration Cases

date

case date

social​Security​Number

case socialSecurityNumber

mrn

case mrn

phone

case phone

pin

case pin

zipcode

case zipcode

credit​Card

case creditCard

credit​Card​Expiration

case creditCardExpiration

cvv

case cvv

custom

case custom(
        mask: String,
        affineFormats: [String] = [],
        affinityCalculationStrategy: AffinityCalculationStrategy = .wholeString
       ) 

A case that can be used if you need a mask that CreationKit doesn't provide.

Properties

mask​Format

public var maskFormat: String  

The mask format for a given case

affine​Formats

public var affineFormats: [String]  

Affine formats for a given case. This usually will return an empty array as most cases don't require affine formats.

affinity​Calculation​Strategy

public var affinityCalculationStrategy: AffinityCalculationStrategy  

readable​Mask​String

public var readableMaskString: String  

suggested​Keyboard​Type

public var suggestedKeyboardType: UIKeyboardType  

The suggested keyboard type to use for a given case.