SearchListPickerItem

public struct SearchListPickerItem
extension SearchListPickerItem: View

Undocumented

  • Undocumented

    Declaration

    Swift

    public init(model: SearchListPickerItemModel)
  • Undocumented

    Declaration

    Swift

    public init(value: Binding<[Int]>, valueOptions: [String] = [], hint: String? = nil, onTap: ((_ index: Int) -> Void)? = nil)
  • create a list picker which is used in FilterFeedbackBarItem

    Declaration

    Swift

    init(value: Binding<[Int]>, valueOptions: [String] = [], hint: String? = nil, allowsMultipleSelection: Bool, allowsEmptySelection: Bool, isSearchBarHidden: Bool = false, disableListEntriesSection: Bool, allowsDisplaySelectionCount: Bool, barItemFrame: CGRect = .zero, onTap: ((_ index: Int) -> Void)? = nil, selectAll: ((_ isAll: Bool) -> Void)? = nil, updateSearchListPickerHeight: ((CGFloat) -> Void)? = nil)

    Parameters

    value

    Indexes for selected values.

    valueOptions

    The data for constructing the list picker.

    hint

    Hint message.

    allowsMultipleSelection

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

    allowsEmptySelection

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

    onTap

    The closure when tap on item.

    selectAll

    The closure when click ‘Select All’ button.

    updateSearchListPickerHeight

    The closure to update the parent view.

    disableListEntriesSection

    A boolean value to indicate to disable entries section or not.

    allowsDisplaySelectionCount

    A boolean value to indicate to display selection count or not.

    barItemFrame

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

  • Declaration

    Swift

    public var body: some View { get }