RSDBooleanTableItemGroup

public final class RSDBooleanTableItemGroup : RSDChoicePickerTableItemGroup

An item group for entering a boolean data type.

  • Default initializer.

    Declaration

    Swift

    public init(beginningRowIndex: Int, inputField: RSDInputField, uiHint: RSDFormUIHint)

    Parameters

    beginningRowIndex

    The first row of the item group.

    inputField

    The input field associated with this item group.

    uiHint

    The UI hint.

  • Override setting the answer to set to false rather than nil if this is a single selection checkbox and the value has been de-selected.

    Declaration

    Swift

    public override func setAnswer(_ newValue: Any?) throws
  • Override setting the answer from a result to check for nil and exit early if found.

    Declaration

    Swift

    public override func setAnswer(from result: RSDResult) throws
  • Override to set the default answer to false if the checkbox is not checked.

    Declaration

    Swift

    public override func setDefaultAnswerIfValid() -> Bool