Contents

onMapCameraChange(frequency:_:)

Performs an action when Map camera framing changes

Declaration

@MainActor @preconcurrency func onMapCameraChange(frequency: MapCameraUpdateFrequency = .onEnd, _ action: @escaping (MapCameraUpdateContext) -> 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. The closure takes a MapCameraUpdateContext parameter that indicates the camera and the framed area.