User input masking library repo.
⤵️ Added:
TextViewListener
class for NSTextView
instances⤵️ Added:
MaskedTextInputListener
now provides call forwarding to its corresponding textFieldDelegate
and textViewDelegate
🔄 Modified:
Country::findCountries
→ fix bloomer🔄 Modified:
MaskedTextInputListener.replaceCharacters()
: apply a patch to counter iOS Undo Manager, see https://github.com/RedMadRobot/input-mask-ios/issues/84
🔄 Modified:
UITextInput.caretPosition.setter
now updates caret position only if it changed⤵️ Added:
NumberInputListener
: a MaskedTextInputListener
allowing to enter currencies and other numbers"".numberOfOccurrencesOf(string)
: a helper method to count occurencies of substrings🔄 Modified:
CharacterSet.isMember(character:)
made public
MaskedTextInputListener
: UITextFieldDelegate
and UITextViewDelegate
extensions made open
MaskedTextInputListener.atomicCaretMovement
is now applied everywhere🔄 Modified:
spec.platform
→ ios, 15.6
⤵️ Added:
"".extractDigits()
: a helper method to extract digits from a String
"".boxSizeWithFont(font)
: a helper method to calculate a rectangle size for a String
tailPlaceholder
for the value to be completedCountry
: a model object representing a country with phone formatting, ISO codes & emojisCountry.all
: a dictionary of known countriesMaskedTextField
: a SwiftUI TextField
with an attached maskPhoneInputListener
: a MaskedTextInputListener
allowing to enter a phone number of any known country⤴️ Removed:
UITextField.cursorPosition
: please use a UITextInput.caretPosition
property insteadUITextView.cursorPosition
: please use a UITextInput.caretPosition
property instead🔄 Modified:
swift-tools-version
→ 5.7.1
16.1
Mask::apply()
, the autocomplete
flagThis flag is now a part of the CaretGravity.forward
enum case.
CaretGravity.forward
, the autocomplete
flagCaretGravity.backward
, the autoskip
flag