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
socialSecurityNumber
case socialSecurityNumber
mrn
case mrn
phone
case phone
pin
case pin
zipcode
case zipcode
creditCard
case creditCard
creditCardExpiration
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.
-
mask: The mask to use. Info on Mask Syntax
-
affineFormats: The affine formats to use. Info on Affine Formats
Properties
affineFormats
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.
affinityCalculationStrategy
public var affinityCalculationStrategy: AffinityCalculationStrategy
readableMaskString
public var readableMaskString: String
suggestedKeyboardType
public var suggestedKeyboardType: UIKeyboardType
The suggested keyboard type to use for a given case.