One Logo Pool Ball
_MapKit_SwiftUI · IOS API REFERENCE

Annotation

struct · iOS 17.0+ · SDK 27.1

@MainActor @preconcurrency struct Annotation<Label, Content> where Label : View, Content : View

A customizable annotation that marks a map location. Create instances of ``Annotation`` in the closure you provide to the `content` parameter in ``MapView`` initializers.

Members (0)

This type has no directly callable members in this snapshot. See the framework’s skipped declarations for unsupported APIs.

Skipped declarations

9 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.

Annotation.init(coordinate:anchor:accessoryAnchor:content:label:)

callback cannot propagate synchronous failure

Annotation.init(coordinate:anchor:content:label:)

callback cannot propagate synchronous failure

Annotation.init(_:coordinate:anchor:accessoryAnchor:content:)

callback cannot propagate synchronous failure

Annotation.init(_:coordinate:anchor:accessoryAnchor:content:)

callback cannot propagate synchronous failure

Annotation.init(_:coordinate:anchor:content:)

callback cannot propagate synchronous failure

Annotation.init(_:coordinate:anchor:content:)

callback cannot propagate synchronous failure

Annotation.init(_:coordinate:anchor:accessoryAnchor:content:)

callback cannot propagate synchronous failure

Annotation.init(_:coordinate:anchor:content:)

callback cannot propagate synchronous failure

Annotation.init(item:anchor:accessoryAnchor:content:)

callback cannot propagate synchronous failure

All _MapKit_SwiftUI types →