TextFormatterProtocolwas renamed toTextFormatterformattedText(from:)method renamed toformat()unformattedText(from:)method renamed tounformat()
public protocol TextFormatter {
func format(_ unformattedText: String?) -> String?
func unformat(_ formattedText: String?) -> String?
}TextInputFormatterProtocolwas 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
TextInputFormatterwas renamed toDefaultTextInputFormattervar allowedSymbolsRegex: Stringwas 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
MulticastDelegateTextInputTextInputDelegateAttributedTextInputFieldAttributedTextInputViewTextInputFieldTextInputFieldDelegateTextInputViewTextInputViewDelegateTextInputController