ClearAllButton
@MainActor
open class ClearAllButton : FUIMapToolbarButton
FUIMapToolbar.ClearAllButton inherits from the FUIButton class and is presented within the FUIMapToolbar. This moves the floorplan panels (detail panel & legend) out of view to see more of the map.
Available in FUIMapToolbar.ClearAllButton:
mapFloorplan: theFUIMKMapFloorplanViewControllerthe button interacts with to show and hide panels.
Usage:
let toolbar = FUIMapToolbar(mapView: mapView)
let clearAllButton = FUIMapToolbar.ClearAllButton(mapFloorplan: self)
toolbar.items = [clearAllButton]
-
A convenience initializer that instantiates a
FUIMapToolbar.ClearAllButtonwith a frame of zero.Declaration
Swift
@MainActor public required init() -
A convenience initializer that instantiates a
FUIMapToolbar.ClearAllButtonusing a providedFUIMKMapFloorplanViewController.Declaration
Swift
@MainActor public convenience init(mapFloorplan: FUIMKMapFloorplanViewController) -
The floorplan which the clear all button is attached to.
Declaration
Swift
@MainActor public weak var mapFloorplan: FUIMKMapFloorplanViewController?