Error fixed

This commit is contained in:
Alexey Gerasimov 2017-05-02 18:49:39 +03:00
parent a22d820c90
commit cb665d29a1
1 changed files with 4 additions and 4 deletions

View File

@ -241,12 +241,12 @@ extension BasePassCodeViewController: ConfigurableController {
extension BasePassCodeViewController: UITextFieldDelegate {
func textField(_ textField: UITextField,
shouldChangeCharactersIn range: NSRange,
replacementString string: String) -> Bool {
public func textField(_ textField: UITextField,
shouldChangeCharactersIn range: NSRange,
replacementString string: String) -> Bool {
let invalid = CharacterSet(charactersIn: "0123456789").inverted
return string.rangeOfCharacter(from: invalid, options: [], range: string.startIndex..<string.endIndex) == nil
}
}