mapItemDetailPopover(item:displaysMap:attachmentAnchor:arrowEdge:)
Presents a map item detail popover.
Declaration
@MainActor @preconcurrency func mapItemDetailPopover(item: Binding<MKMapItem?>, displaysMap: Bool = true, attachmentAnchor: PopoverAttachmentAnchor = .rect(.bounds), arrowEdge: Edge) -> some View
Parameters
- item:
When
itemis non-nil, a detail popover is displayed for the map item. - displaysMap:
If an inline map should be displayed with the place data. A value of
truemust 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
attachmentAnchorthat defines the location of the popover’s arrow.
See Also
Getting location information
LocationButtonMapmapStyle(_:)mapScope(_:)mapFeatureSelectionDisabled(_:)mapFeatureSelectionAccessory(_:)mapFeatureSelectionContent(content:)mapControls(_:)mapControlVisibility(_:)mapCameraKeyframeAnimator(trigger:keyframes:)lookAroundViewer(isPresented:scene:allowsNavigation:showsRoadLabels:pointsOfInterest:onDismiss:)lookAroundViewer(isPresented:initialScene:allowsNavigation:showsRoadLabels:pointsOfInterest:onDismiss:)onMapCameraChange(frequency:_:)mapItemDetailPopover(isPresented:item:displaysMap:attachmentAnchor:)mapItemDetailPopover(isPresented:item:displaysMap:attachmentAnchor:arrowEdge:)