TextFormatterProtocol
was renamed toTextFormatter
formattedText(from:)
method renamed toformat()
unformattedText(from:)
method renamed tounformat()
public protocol TextFormatter {
func format(_ unformattedText: String?) -> String?
func unformat(_ formattedText: String?) -> String?
}
TextInputFormatterProtocol
was renamed toTextInputFormatter
- now have only one method
formatInput(currentText:)
, how to use it look at demo project
protocol TextInputFormatter: TextFormatter {
func formatInput(currentText: String, range: NSRange, replacementString text: String) -> FormattedTextValue
}
TextFormatter
was renamed to DefaultTextFormatter
TextInputFormatter
was renamed toDefaultTextInputFormatter
var allowedSymbolsRegex: String
was removed. Filter moved to separate pod (look at Filter)shouldChangeTextIn(textInput:)
was removed (need to useformatInput(currentText:)
)
var formattedPrefix: String?
was removedvar allowedSymbolsRegex: String?
was removed. Filter moved to separate pod (look at Filter)func didBeginEditing()
was removedfunc shouldChangeTextIn(textInput:)
was removed
MulticastDelegate
TextInput
TextInputDelegate
AttributedTextInputField
AttributedTextInputView
TextInputField
TextInputFieldDelegate
TextInputView
TextInputViewDelegate
TextInputController