alberdev/AnimatedField

How can i check if a field contains valid data?

Closed this issue · 4 comments

How can i check if a field contains valid data?

I have a continue button that should only be enabled if all fields are valid, how to check that?

hey Alberto, thanks for the quick answer!

i am interested to do something like this, using default regex rules from your code

on login button action:

if usernameField.isValid && passwordField.isValid {
continue
}

i currently cant do that with delegates. isValid is some kind of function that validates that current field on demand

thanks!

Good idea! I will update AnimatedField with isValid parameter

;)

Hi Radu! I've updated and released new version 2.0.3 with isValid parameter and new delegate method: didShowAlertMessage. Example is also updated ;)