In objective-c I can just say the following.
[self.promoTextField setKeyboardType:UIKeyboardTypeEmailAddress];
I tried googling it but just ge
The documentation about UITextInputTraits, a protocol adopted by UITextField, says it's still here:
optional var keyboardType: UIKeyboardType { get set }
And the list of all keyboardTypes is here :
enum UIKeyboardType : Int {
case Default
case ASCIICapable
case NumbersAndPunctuation
case URL
case NumberPad
case PhonePad
case NamePhonePad
case EmailAddress
case DecimalPad
case Twitter
case WebSearch
}