You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// secure text after a bit
DispatchQueue.main.asyncAfter(deadline: .now() + .milliseconds(500), execute: {
if !(textField.text?.isEmpty ?? true) {
placeholderLabel.isHidden = true
if self.shouldSecureText { textField.text = self.secureCharacter }
}
})
The text was updated successfully, but these errors were encountered:
Can we make the 500 milliseconds configurable??
// secure text after a bit
DispatchQueue.main.asyncAfter(deadline: .now() + .milliseconds(500), execute: {
if !(textField.text?.isEmpty ?? true) {
placeholderLabel.isHidden = true
if self.shouldSecureText { textField.text = self.secureCharacter }
}
})
The text was updated successfully, but these errors were encountered: