Is it possible to change action on press "123" and "ABC" Buttons on keyboard?
(To switch not between 2 presentations of .default keyboard but different styles)
textField.returnKeyType = .default // I have this
textField.123KeyAction = { switch to .numberPad } // my expectation
textField.ABCKeyAction = { switch to .default } // my expectation
Kiryl Famin
1,0706 silver badges20 bronze badges
asked Feb 11, 2025 at 14:24
Konstantin.Efimenko
1,5121 gold badge20 silver badges41 bronze badges
1 Answer 1
No, not if you use the built-in keyboard. You would have to write your own keyboard view(s) in order to accomplish this.
answered Feb 11, 2025 at 14:39
matt
540k97 gold badges949 silver badges1.3k bronze badges
Sign up to request clarification or add additional context in comments.
Comments
Explore related questions
See similar questions with these tags.
lang-swift