DSEmailAddressInputMask
public class DSEmailAddressInputMask : DSInputMask
The DSEmailAddressInputMask, when assigned to a DSTextField, will enforce use of an email keyboard for text entry and prevents invalid typing of email addresses where possible.
It’s recommended to use the DSEmailAddressValidationRule along with this mask.
let textField = DSTextField()
textField.inputMask = DSEmailAddressInputMask()
textField.addValidationRule(DSEmailAddressValidationRule())
-
Any character can be used to enter an email address.
Declaration
Swift
public var keyboardType: UIKeyboardType? { get }