Style
Color-class based structure to generate your own UI style for Search UI elements.
Instead of color-per-element you can configure color classes like primaryTextColor or primaryAccentColor
Dark mode support should be implemented in the same Style instance as the light one.
Please use Asset Catalog colors or UIColor.init(dynamicProvider:)
-
init(primaryTextColor:primaryBackgroundColor:secondaryBackgroundColor:separatorColor:primaryAccentColor:primaryInactiveElementColor:panelShadowColor:panelHandlerColor:iconTintColor:activeSegmentTitleColor:)Make your own Style for SearchUI or use the default as
Style.default. Passnilto args to use default value -
Default Mapbox style for SearchUI SDK
-
Color of the most text-based elements
-
Main background color
-
Search Bar background, Category buttons background
-
Separator color for UITableViews
-
Accent color is used is
UIView.tintColor. By default is blue (mapbox style) -
Color of non-active or non-important labels like placeholder in
SearchBaror address label inSearchSuggestionCell -
Shadow color for
MapboxPanelController -
Color of the small rectangle at the top of the
MapboxPanelController -
Tinting color for most icons like category icon or favorite record icon
-
Title color for active element in SegmentedControl
Note
To customise inactive title color useStyle.primaryInactiveElementColor
Style Structure Reference