Signature
Explore example code
Browse the Filter Map example code on GitHub.
About this widget
Components holding a map of filters, and that can apply a single filter at a time.Examples
Swift
Low-level API
If you want to fully control the Filter Map components and connect them manually, use the following components:Searcher. TheSearcherthat handles searches.FilterState. The current state of the filters.FilterMapInteractor. The logic applied to the filter map.FilterMapController. The view that renders the filter map.
Swift
Parameters
The
Searcher that handles your searches.The
FilterState that holds filters.The map of filters to be held.
The key is an unique identifier for the filter value.
Swift
Whether facets are combined with
and or or behavior in filterState.
For example if you select color as the attribute and an or behavior,
the filter sent to Algolia is color:red OR color:green.