FormValidator
public class FormValidator
The FormValidator allows to evaluate sign up forms easily. Simply provide email, password and the type of validation you
want to specify for the given password.
FormValidator is only mean't to be used for Sign up forms.
-
Empty constructor.
Declaration
Swift
public init() -
Validates the password with the given validation types and minimum Characters.
Declaration
Swift
public func isValid(_ password: String, validators: [ValidationType]) -> BoolParameters
passwordThe email given.
validatorsThe validators for your password.
-
Validates the email and password with the given validation types and minimum characters.
Declaration
Swift
public func isValid(_ email: String, password: String, validators: [ValidationType]) -> BoolParameters
emailthe email given.
passwordThe password given.
validatorsThe validators for your password.
-
Validates the email, password and confirmation password with the given validation types and minimum characters.
Declaration
Swift
public func isValid(_ email: String, password: String, confirmationPassword: String, validators: [ValidationType]) -> BoolParameters
emailthe email given.
passwordThe password given.
confirmationPasswordThe confirmation password given.
validatorsThe validators for your password.
-
Validates the email and password with the given password regex code.
Declaration
Swift
public func isValid(_ email: String, password: String, passwordRegex: String) -> BoolParameters
emailthe email given.
passwordThe password given.
passwordRegexThe password regex code.
-
Validates the email, password and confirmation password with the given password regex code.
Declaration
Swift
public func isValid(_ email: String, password: String, confirmationPassword: String, passwordRegex: String) -> BoolParameters
emailthe email given.
passwordThe password given.
confirmationPasswordThe confirmation password given.
passwordRegexThe password regex code.
-
Validates the password with the given regex code.
Declaration
Swift
public func isValid(_ password: String, passwordRegex: String) -> BoolParameters
passwordThe password given.
passwordRegexThe password regex code.
-
Validates the Email.
Declaration
Swift
public func isValid(_ email: String) -> BoolParameters
emailthe email given.
FormValidator Class Reference