onMapCameraChange(frequency:_:)
Performs an action when Map camera framing changes
Declaration
@MainActor @preconcurrency func onMapCameraChange(frequency: MapCameraUpdateFrequency = .onEnd, _ action: @escaping () -> Void) -> some View
Parameters
- frequency:
How frequently the action should be performed during a camera interaction.
- action:
A closure to run when the camera framing changes.
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:)mapItemDetailPopover(isPresented:item:displaysMap:attachmentAnchor:)mapItemDetailPopover(isPresented:item:displaysMap:attachmentAnchor:arrowEdge:)mapItemDetailPopover(item:displaysMap:attachmentAnchor:)