Form

public protocol Form

A form to assist in validating ValidatorControl objects’ current states.

  • Entries in the form.

    Declaration

    Swift

    var entries: [FormEntry] { get set }
  • isValid Default implementation

    Whether or not the entire form is valid.

    Default Implementation

    Declaration

    Swift

    var isValid: Bool { get }
  • addEntry(_:) Default implementation

    Undocumented

    Default Implementation

    Undocumented

    Declaration

    Swift

    mutating func addEntry(_ control: ValidatorControl)
  • removeControlAtIndex(_:) Default implementation

    Undocumented

    Default Implementation

    Undocumented

    Declaration

    Swift

    mutating func removeControlAtIndex(_ index: Int) -> ValidatorControl?
  • checkConditions() Default implementation

    Checks the text from each entry in entries.

    Default Implementation

    Declaration

    Swift

    func checkConditions() -> [Condition]?

    Return Value

    An array of conditions that were violated. If no conditions were violated then nil is returned.