OptionListPickerItem

public struct OptionListPickerItem
extension OptionListPickerItem: View

Undocumented

  • Undocumented

    Declaration

    Swift

    public init(model: OptionListPickerItemModel)
  • Undocumented

    Declaration

    Swift

    public init(value: Binding<[Int]>, valueOptions: [String] = [], hint: String? = nil, title: String? = nil, itemLayout: OptionListPickerItemLayoutType = .fixed, allowsMultipleSelection: Bool = true, allowsEmptySelection: Bool = false, onTap: ((_ index: Int) -> Void)? = nil)
  • create a filter picker which is used in FilterFeedbackBarItem

    Declaration

    Swift

    init(value: Binding<[Int]>, valueOptions: [String] = [], title: String? = nil, hint: String? = nil, itemLayout: OptionListPickerItemLayoutType = .fixed, allowsMultipleSelection: Bool = true, allowsEmptySelection: Bool = false, barItemFrame: CGRect = .zero, onTap: ((_ index: Int) -> Void)? = nil, updateSearchListPickerHeight: ((CGFloat) -> Void)? = nil)

    Parameters

    value

    Indexes for selected values.

    valueOptions

    The data for constructing the list picker.

    hint

    Hint message.

    title

    Title label of the options.

    itemLayout

    Option item layout type.

    allowsMultipleSelection

    A boolean value to indicate to allow multiple selections or not.

    allowsEmptySelection

    A boolean value to indicate to allow empty selections or not.

    barItemFrame

    The frame of the item in FilterFeedbackBar, which toggle to show this view.

    onTap

    The closure when tap on item.

    updateSearchListPickerHeight

    The closure to update the parent view.

  • Declaration

    Swift

    @MainActor
    public var body: some View { get }