New to iPad development. I would like to use a custom numeric keyboard (using a pod) on iPad, but the native one on iPhones. Is it possible to make an extension on UITextField, UITextView to set/get inputView/keyboardType? Or is there an other solution?
myTextField.keyboardType = .decimalPad
extension UITextField {
....
case .decimalPad:
if UIDevice.current.userInterfaceIdiom == .pad {
...
}