Contents

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