@@ -35,7 +35,7 @@ import UIKit
35
35
/// Tells the delegate that the token field will process the pressing of the return button.
36
36
@objc optional func tokenFieldWillReturn( _ tokenField: ICTokenField )
37
37
/// 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 )
39
39
/// Tells the delegate that the token at certain index is removed from the token field.
40
40
@objc optional func tokenField( _ tokenField: ICTokenField , didDeleteText text: String , atIndex index: Int )
41
41
}
@@ -297,7 +297,7 @@ open class ICTokenField: UIView, UITextFieldDelegate, ICBackspaceTextFieldDelega
297
297
if !newToken. isEmpty && newToken != delimiter {
298
298
tokens. append ( ICToken ( text: newToken, normalAttributes: normalTokenAttributes, highlightedAttributes: highlightedTokenAttributes) )
299
299
layoutTokenTextField ( )
300
- delegate? . tokenField ? ( self , didEnterText : newToken)
300
+ delegate? . tokenField ? ( self , didCompleteText : newToken)
301
301
}
302
302
togglePlaceholderIfNeeded ( )
303
303
@@ -439,7 +439,7 @@ open class ICTokenField: UIView, UITextFieldDelegate, ICBackspaceTextFieldDelega
439
439
inputTextField. text = nil
440
440
tokens. append ( ICToken ( text: text, normalAttributes: normalTokenAttributes, highlightedAttributes: highlightedTokenAttributes) )
441
441
layoutTokenTextField ( )
442
- delegate? . tokenField ? ( self , didEnterText : text)
442
+ delegate? . tokenField ? ( self , didCompleteText : text)
443
443
}
444
444
445
445
/// Removes the input text and all displayed tokens.
0 commit comments