Skip to content

Commit 207327b

Browse files
committed
Mark the ICBackspaceTextFieldDelegate method as nonobjc to silence the warning
> instance method 'textFieldShouldDelete' nearly matches optional requirement 'textFieldShouldClear' of protocol 'UITextFieldDelegate'
1 parent 567c633 commit 207327b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Source/TokenField/ICTokenField.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ open class ICTokenField: UIView, UITextFieldDelegate, ICBackspaceTextFieldDelega
327327

328328
// MARK: - ICBackspaceTextFieldDelegate
329329

330-
func textFieldShouldDelete(_ textField: ICBackspaceTextField) -> Bool {
330+
@nonobjc func textFieldShouldDelete(_ textField: ICBackspaceTextField) -> Bool {
331331
if tokens.isEmpty {
332332
return true
333333
}

0 commit comments

Comments
 (0)