How do I find out if the keyboard is of type numeric, Twitter, email, etc...? edit: Is there a way to detect keyboard type without using an outlet? Ahmad F Consider that you have tow textFields in the ViewController, You will need to implement textFieldShouldBeginEditing method from UITextFieldDelegate protocol, as follows: class ViewController: UIViewController, UITextFieldDelegate { @IBOutlet weak var tfEmail: UITextField! @IBOutlet weak var tfPassword: UITextField! func textFieldDidBeginEditing(_ textField: UITextField) { if textField.keyboardType == .emailAddress { // this is the tfEmail!