diff --git a/SwiftyCodeView/Classes/SwiftyCodeView/SwiftyCodeView.swift b/SwiftyCodeView/Classes/SwiftyCodeView/SwiftyCodeView.swift index d7f0703..49f7ee4 100644 --- a/SwiftyCodeView/Classes/SwiftyCodeView/SwiftyCodeView.swift +++ b/SwiftyCodeView/Classes/SwiftyCodeView/SwiftyCodeView.swift @@ -111,6 +111,10 @@ extension SwiftyCodeView: UITextFieldDelegate, SwiftyCodeTextFieldDelegate { return true } + if string.count > 1 { + return true + } + if !textField.hasText { let index = textField.tag let item = stackView.arrangedSubviews[index] as! SwiftyCodeItemView