ToggleRowType

public protocol ToggleRowType : LabelRowType

The protocol of the toggle row

  • The current value of the toggle.

    Declaration

    Swift

    var value: Bool { get set }
  • If the toggle value can be changed

    Declaration

    Swift

    var isEnabled: Bool { get set }
  • The action to be triggered when the value is changed.

    Declaration

    Swift

    var didChangeValueAction: ((Bool) -> Void)? { get set }