icerockdev / moko-widgets

Multiplatform UI DSL with screen management in common code for mobile (android & ios) Kotlin Multiplatform development
https://moko.icerock.dev
Apache License 2.0
387 stars 32 forks source link

Allow custom InputType implementation #223

Closed Alex009 closed 4 years ago

Alex009 commented 4 years ago

Now InputType is sealed class, but it not allow to implement own formatting support, so i suggest change InputType to expect interface , with applyTo(textField: UITextField)/applyTo(editText: EditText) on platform code. all prebuilt types will be changed to separated classes, or just extension function to InputType.Companion to support auto-suggestions in IDE when we type InputType. like: InputType.phone("+#-###-###-####")

Alex009 commented 4 years ago

already implemented