init(anchor:content:)
Creates an annotation that displays a person’s current location using the system styled user location indicator with the specified anchor point using a custom view.
Declaration
@MainActor @preconcurrency init(anchor: UnitPoint = .center, @ViewBuilder content: @escaping (UserLocation) -> Content)Parameters
- anchor:
A UnitPoint value that describes how to anchor the user location indicator to the person’s location. The default is Center.
- content:
The custom view to show at the person’s location.
Return Value
Returns a UserAnnotation that displays a persons current location using the specified anchor location.