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