Class
DSNumberInputMask
public class DSNumberInputMask: DSInputMask
An input mask, when assigned to a DSTextField, will enforce use of a number pad for numeric entry where only digits are allowed.
let textField = DSTextField()
textField.inputMask = DSNumberInputMask()
Relationships
Conforms To
DSInputMask
A masking object that controls what can be legally typed into a DSTextField and handles type formatting while that typing takes place. They do not validate but often "partner" up with validation rules.
Initializers
init()
public init()
Properties
Methods
shouldAllow(replacementString:resultingString:)
public func shouldAllow(replacementString string: String, resultingString: String) -> Bool
Only allow numeric digits.
applyFormattingMask(to:)
public func applyFormattingMask(to text: String) -> String