Contents

mapItemDetailSheet(item:displaysMap:)

Presents a map item detail sheet.

Declaration

@MainActor @preconcurrency func mapItemDetailSheet(item: Binding<MKMapItem?>, displaysMap: Bool = true) -> some View

Parameters

  • item:

    When item is non-nil, a detail sheet is displayed for the map item.

  • displaysMap:

    If an inline map should be displayed with the place data. A value of true must be specified if the application UI is not already showing the place in a map view.

See Also

Getting location information