Error fixed
This commit is contained in:
parent
a22d820c90
commit
cb665d29a1
|
|
@ -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
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue