Contents

init(anchor:content:)

Create an annotation that displays the person’s current location of the user using a custom view.

Declaration

@MainActor @preconcurrency init(anchor: UnitPoint = .center, @ViewBuilder content: @escaping () -> Content)

Parameters

  • anchor:

    How to anchor the user location indicator around the person’s location. The default is Center.

  • content:

    The custom view used to indicate the person’s location.

See Also

Creating a user annotation