ValidationDelegate

@objc public protocol ValidationDelegate

Protocol for ValidationDelegate adherents, which comes with two required methods that are called depending on whether validation succeeded or failed.

  • This method will be called on delegate object when validation is successful.

    Declaration

    Swift

    func validationSuccessful()

    Return Value

    No return value.

  • This method will be called on delegate object when validation fails.

    Declaration

    Swift

    func validationFailed(errors: [UITextField:ValidationError])

    Return Value

    No return value.