Skip to content

Commit

Permalink
Mark the ICBackspaceTextFieldDelegate method as nonobjc to silence th…
Browse files Browse the repository at this point in the history
…e warning

> instance method 'textFieldShouldDelete' nearly matches optional requirement 'textFieldShouldClear' of protocol 'UITextFieldDelegate'
  • Loading branch information
bcylin committed Mar 29, 2017
1 parent 567c633 commit 207327b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/TokenField/ICTokenField.swift
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ open class ICTokenField: UIView, UITextFieldDelegate, ICBackspaceTextFieldDelega

// MARK: - ICBackspaceTextFieldDelegate

func textFieldShouldDelete(_ textField: ICBackspaceTextField) -> Bool {
@nonobjc func textFieldShouldDelete(_ textField: ICBackspaceTextField) -> Bool {
if tokens.isEmpty {
return true
}
Expand Down

0 comments on commit 207327b

Please sign in to comment.