Contents

init(alignment:scope:)

Creates a scale view with the provided alignment and scope.

Declaration

@MainActor @preconcurrency init(alignment: HorizontalAlignment = .leading, scope: Namespace.ID? = nil)

Parameters

  • alignment:

    The alignment that describes the positioning of the scale view. The default is Leading.

  • scope:

    A Id value that identifies this namespace and that you can use to associate this control with a map instance.

Return Value

An initialized scale view.

See Also

Creating a map scale view