I set keyboardType to telephoneNumber and keyboardType is numberPad,telephoneNumber can't show,but I change the keyboardType to numbersAndPunctuation,the telephone can show,how to show telephone in keyboard is numberPad in iOS14
this is my code
let input = UITextField.init()
input.backgroundColor = UIColor.red
input.frame = CGRect(x: 100, y: 300, width: 200, height: 50)
input.textContentType = .telephoneNumber
input.keyboardType = .numberPad
input.delegate = self
input.autocorrectionType = .yes
view.addSubview(input)