jobandtalent / AnimatedTextInput

Animated UITextField and UITextView replacement for iOS
MIT License
760 stars 128 forks source link

Secured Entry #117

Closed cesarmtz93 closed 5 years ago

cesarmtz93 commented 5 years ago

is there a way in that I can set the entry secure for any type of field? e.g. numeric I want it to be secured

victorBaro commented 5 years ago

Not with the current implementation. But you can create your own Configurator. You need to create your own TextInput and configure the component with the generic type Something like this:

let customInput = AnimatedTextField()
customInput.rightViewMode = .whileEditing
customInput.isSecureTextEntry = true
customInput.keyboardType = .decimalPad

let textInput = AnimatedTextInputFieldConfigurator.configure(with: .generic(textInput: myTextInput))
// use textInput