SMIFormOptionPickerInput

Objective-C

@protocol SMIFormOptionPickerInput <SMIFormInput>

Swift

protocol FormOptionPickerInput : FormInput

Represents a selectable input on a form for a single selection.

  • The currently selected index.

    Declaration

    Objective-C

    @property (nonatomic, readonly) NSUInteger selectedOptionIndex;

    Swift

    var selectedOptionIndex: UInt { get }
  • A list of selectable options.

    Declaration

    Objective-C

    @property (nonatomic, strong, readonly) NSArray<id<SMIFormTitleOptionItem>> *_Nonnull optionItems;

    Swift

    var optionItems: [any FormInputOptionItem] { get }
  • The current selected value for this input.

    Declaration

    Objective-C

    @property (nonatomic, strong, nullable) id<SMIFormTitleOptionItem> value;

    Swift

    var value: (any FormInputOptionItem)? { get set }