<!--
{
  "availability" : [
    "iOS: 18.0.0 -",
    "iPadOS: 18.0.0 -",
    "macOS: 15.0.0 -",
    "visionOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/View/mapItemDetailPopover(isPresented:item:displaysMap:attachmentAnchor:arrowEdge:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "SwiftUI",
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI4ViewP08_MapKit_aB0E20mapItemDetailPopover11isPresented4item08displaysD016attachmentAnchor9arrowEdgeQrAA7BindingVySbG_So05MKMapG0CSgSbAA0i10AttachmentO0OAA0Q0OtF"
  },
  "title" : "mapItemDetailPopover(isPresented:item:displaysMap:attachmentAnchor:arrowEdge:)"
}
-->

# mapItemDetailPopover(isPresented:item:displaysMap:attachmentAnchor:arrowEdge:)

Presents a map item detail popover.

```
@MainActor @preconcurrency func mapItemDetailPopover(isPresented: Binding<Bool>, item: MKMapItem?, displaysMap: Bool = true, attachmentAnchor: PopoverAttachmentAnchor = .rect(.bounds), arrowEdge: Edge) -> some View
```

## Parameters

`isPresented`

The binding to whether the detail sheet should be shown.

`item`

The map item to display. If nil, a “loading” view is displayed.

`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.

`attachmentAnchor`

The positioning anchor that defines the attachment
point of the popover. The default is `bounds`.

`arrowEdge`

The edge of the `attachmentAnchor` that defines the
location of the popover’s arrow.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)