Map Toolbar¶
FUIMapToolbar
¶
open class FUIMapToolbar: UIView, FUIBackgroundSchemeSupporting
A View that wraps the FUIMapToolbarButton
in a vertical stack.
- The
FUIMapToolbar
holds a maximum of 6FUIMapToolbarButton
. - Default variants of
FUIMapToolbarButton
exist within the SDK. See,FUIMapToolbarSettingsButton
,FUIMapToolbarUserLocationButton
,FUIMapToolbarZoomExtentButton
, orFUIMapToolbarLegendButton
- The
FUIMapToolbar
can be presented in either a dark or light variant. - The
FUIMapToolbar
will be pinned to the givenMKMapView
in the top right corner
Usage¶
var toolbar = FUIMapToolbar(mapView: mapView)
toolbar.backgroundColorScheme = .dark // defaults to `.light`
let locationButton = FUIMapToolbarUserLocationButton(mapView: self.mapView)
let zoomExtentsButton = FUIMapToolbarZoomExtentButton(mapView: self.mapView)
toolbar.items = [locationButton, zoomExtentsButton]
Last update: April 14, 2021