Configuration
General structure to configure MapboxSearchController UI and logic
-
init(allowsFeedbackUI:categoryDataProvider:locationProvider:hideCategorySlots:style:distanceFormatter:)Default configuration of MapboxSearchController.
-
Allow to show feedback related UI
-
Custom dataProvider to change Categories elements
DefaultCategoryDataProviderused by default. SDK providesConstantCategoryDataProviderto pass constant custom categories -
Force to use your own location provider instead of
DefaultLocationProvider -
Hide horizontal set of category buttons (aka hot category buttons or category slots)
Use
CategoryDataProvider.categorySlotsto provide custom categories -
Style to be used for Search UI elements. It’s possible to change style on the fly. Non-animatable.
-
Override the default
MKDistanceFormatterbehavior used bySearchSuggestionCellto display search results in a specific unit system. A nil value will use theMKDistanceFormattersystem behavior to infer the unit system based on the device locale.
Configuration Structure Reference