I\'d like to create @IBInspectable element as you see at the picture below :
@IBInspectable
My solution was to do :
@IBInspectable var keyboardType = UIKeyboardType.default.rawValue { didSet { textField.keyboardType = UIKeyboardType(rawValue: keyboardType)! } }
On the IB itself, you will need to set an int in the keyboardType field