@@ -35,7 +35,7 @@ import UIKit
3535 /// Tells the delegate that the token field will process the pressing of the return button.
3636 @objc optional func tokenFieldWillReturn( _ tokenField: ICTokenField )
3737 /// Tells the delegate that the text becomes a token in the token field.
38- @objc optional func tokenField( _ tokenField: ICTokenField , didEnterText text: String )
38+ @objc optional func tokenField( _ tokenField: ICTokenField , didCompleteText text: String )
3939 /// Tells the delegate that the token at certain index is removed from the token field.
4040 @objc optional func tokenField( _ tokenField: ICTokenField , didDeleteText text: String , atIndex index: Int )
4141}
@@ -297,7 +297,7 @@ open class ICTokenField: UIView, UITextFieldDelegate, ICBackspaceTextFieldDelega
297297 if !newToken. isEmpty && newToken != delimiter {
298298 tokens. append ( ICToken ( text: newToken, normalAttributes: normalTokenAttributes, highlightedAttributes: highlightedTokenAttributes) )
299299 layoutTokenTextField ( )
300- delegate? . tokenField ? ( self , didEnterText : newToken)
300+ delegate? . tokenField ? ( self , didCompleteText : newToken)
301301 }
302302 togglePlaceholderIfNeeded ( )
303303
@@ -439,7 +439,7 @@ open class ICTokenField: UIView, UITextFieldDelegate, ICBackspaceTextFieldDelega
439439 inputTextField. text = nil
440440 tokens. append ( ICToken ( text: text, normalAttributes: normalTokenAttributes, highlightedAttributes: highlightedTokenAttributes) )
441441 layoutTokenTextField ( )
442- delegate? . tokenField ? ( self , didEnterText : text)
442+ delegate? . tokenField ? ( self , didCompleteText : text)
443443 }
444444
445445 /// Removes the input text and all displayed tokens.
0 commit comments