init(anchorEdge:scope:)
Creates a map scale view.
Declaration
@MainActor @preconcurrency init(anchorEdge: HorizontalEdge = .leading, scope: Namespace.ID? = nil)Parameters
- anchorEdge:
The fixed edge the scale grows and shrinks from. Use this outside of
Map/mapControls(_:)view modifier. - scope:
A Id value that identifies this namespace and that you can use to associate this control with a map instance.