Skip to content

Delay with animation of securing text #7

@msbouchedid

Description

@msbouchedid

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions