Contents

mapFeatureSelectionContent(content:)

Specifies a custom presentation for the currently selected feature.

Declaration

@MainActor @preconcurrency func mapFeatureSelectionContent(@MapContentBuilder content: @escaping (MapFeature) -> some MapContent) -> some View

Parameters

  • content:

    Generates the custom presentation for a given map feature.

Discussion

The supported presentation options are Annotation, and Marker. Other types of map content will be ignored and handled as though no content was returned.

If empty map content is returned, the system presentation will be used.

See Also

Getting location information