Sunspension / VKPinCodeView

VKPinCodeView is simple and elegant UI component for input PIN. You can easily customise appearance and get auto fill (OTP) iOS 12 feature right from the box.
MIT License
96 stars 25 forks source link

Delay with animation of securing text #7

Open msbouchedid opened 4 years ago

msbouchedid commented 4 years ago

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 } } })

Sunspension commented 4 years ago

@msbouchedid Hi, sorry for some delay with answer, yes we can do that.