FieldValidationDataSource

public protocol FieldValidationDataSource : AnyObject

Data source of field validation

  • Provides the validatable value for the given identifier

    Throws

    depends on the implementation, eg. could threws an error if value’s type not equal InputType

    Declaration

    Swift

    func validatableValue<InputType>(for fieldId: Int) throws -> InputType

    Parameters

    fieldId

    field identifier

    Return Value

    the input field’s value