https://kotlinlang.org logo
Title
a

Alex Zaitsev

04/30/2023, 6:51 PM
Guys, is this a bug that my
keyboardOptions
does not work for
TextField
on iOS? I'm trying to set numeric input only. It does not work out-of-the box for iOS while works for Android. While I still can filter chars by digit I'd like to find a 'normal' way to do that. Thanks!
keyboardOptions = KeyboardOptions(keyboardType = KeyboardType.Number)
Simulator Screenshot - iPhone 14 - 2023-04-30 at 12.46.34.png,Screenshot_20230430_124908.png
l

Landry Norris

04/30/2023, 7:02 PM
I don't think this is implemented for iOS yet. Keep in mind that Compose for iOS is in alpha, so some features may be missing or incomplete.
a

Alex Zaitsev

04/30/2023, 7:41 PM
I'm curious should we report these incompletenesses or guys know everything and don't need a remainder 🙂
l

Landry Norris

04/30/2023, 7:43 PM
I would open an issue on the compose-multiplatform github for missing features. I think this is already there, since there's several iOS keyboard-related issues open already.
d

Dima Avdeev

05/01/2023, 5:08 PM