Closed AlexisQapa closed 5 years ago
Hey @AlexisQapa,
For a quick check, have you tried overriding this one?
open func textInput(
_ textInput: UITextInput,
isChangingCharactersIn range: NSRange,
replacementString string: String
) -> Mask.Result
textField (_:shouldChangeCharactersIn:replacementString:)
and textView(_: shouldChangeTextIn:replacementString:)
had been made non-open on purpose, you shouldn't really alter them.
Thanks, I should have looked harder.
Prerequisites
X
between the brackets on this line if you have done all of the following:input-mask
tag for similar problems.Summary
Using
MaskedTextInputListener
on iOS 11, I can't overrideshouldChangeCharactersIn
as I did forMaskedTextFieldsDelegate
before. This method is marked public but not open.Motivation
In the known issues in the README you recommend overriding
shouldChangeCharactersIn
but this is not possible withMaskedTextInputListener
.Describe the solution you'd like
Despite I use only
shouldChangeCharactersIn
, mark both methods for textfields and textviews open so in case anyone needs it.Describe alternatives you've considered
For now I'm sticking with MaskedTextFieldsDelegate