FieldValidator

public final class FieldValidator<InputType, Rule> where InputType == Rule.InputType, Rule : ValidationRuleProtocol
extension FieldValidator: FieldValidationProtocol

This class contains the logic to validate a single field.

FieldValidationProtocol properties

  • The object that acts as the delegate of FieldValidation

    Declaration

    Swift

    public weak var delegate: FieldValidationDelegate?
  • The object that acts as the data source of FieldValidation

    Declaration

    Swift

    public weak var dataSource: FieldValidationDataSource?
  • Field identifier

    Declaration

    Swift

    public let fieldId: Int
  • A Boolean value indicating that the validation process is enabled for the given field

    Declaration

    Swift

    public var isEnabled: Bool

Initialization

FieldValidationProtocol

  • Validates the given field

    Declaration

    Swift

    public func validateField()