@@ -269,7 +269,7 @@ open class ICTokenField: UIView, UITextFieldDelegate, ICBackspaceTextFieldDelega
269269 // MARK: - UITextFieldDelegate
270270
271271 open func textFieldShouldBeginEditing( _ textField: UITextField ) -> Bool {
272- tokens. forEach { $0. highlighted = false }
272+ tokens. forEach { $0. isHighlighted = false }
273273 return true
274274 }
275275
@@ -280,7 +280,7 @@ open class ICTokenField: UIView, UITextFieldDelegate, ICBackspaceTextFieldDelega
280280 open func textFieldDidEndEditing( _ textField: UITextField ) {
281281 completeCurrentInputText ( )
282282 togglePlaceholderIfNeeded ( )
283- tokens. forEach { $0. highlighted = false }
283+ tokens. forEach { $0. isHighlighted = false }
284284 delegate? . tokenFieldDidEndEditing ? ( self )
285285 }
286286
@@ -339,7 +339,7 @@ open class ICTokenField: UIView, UITextFieldDelegate, ICBackspaceTextFieldDelega
339339
340340 if let text = textField. text, text. isEmpty {
341341 textField. showsCursor = false
342- tokens. last? . highlighted = true
342+ tokens. last? . isHighlighted = true
343343 }
344344 return true
345345 }
@@ -363,10 +363,10 @@ open class ICTokenField: UIView, UITextFieldDelegate, ICBackspaceTextFieldDelega
363363 for token in tokens {
364364 if token. frame. contains ( touch) {
365365 scrollView. scrollRectToVisible ( token. frame, animated: true )
366- token. highlighted = true
366+ token. isHighlighted = true
367367 shouldFocusInputTextField = false
368368 } else {
369- token. highlighted = false
369+ token. isHighlighted = false
370370 }
371371 }
372372
@@ -385,7 +385,7 @@ open class ICTokenField: UIView, UITextFieldDelegate, ICBackspaceTextFieldDelega
385385
386386 /// Returns true if any highlighted token is found and removed, otherwise false.
387387 private func removeHighlightedToken( ) -> Bool {
388- for (index, token) in tokens. enumerated ( ) where token. highlighted {
388+ for (index, token) in tokens. enumerated ( ) where token. isHighlighted {
389389 tokens. remove ( at: index)
390390 layoutTokenTextField ( )
391391 togglePlaceholderIfNeeded ( )
0 commit comments