DSNumberInputMask
public class DSNumberInputMask : DSInputMask
The DSNumberInputMask, when assigned to a DSTextField, will enforce use of an number pad for numeric entry where only digits are allowed.
let textField = DSTextField()
textField.inputMask = DSNumberInputMask()
-
Only numbers are needed to enter a number.
Declaration
Swift
public var keyboardType: UIKeyboardType? { get }