Skip to content

Commit 185343a

Browse files
committed
fix: modern concurrency camera
1 parent 1c1abee commit 185343a

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

Sources/MapLibreSwiftUI/MapView.swift

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,7 @@ public struct MapView<T: MapViewHostViewController>: UIViewControllerRepresentab
7676

7777
// Apply modifiers, suppressing camera update propagation (this messes with setting our initial camera as
7878
// content insets can trigger a change)
79-
// context.coordinator.suppressCameraUpdatePropagation = true
8079
applyModifiers(controller, runUnsafe: false)
81-
// context.coordinator.suppressCameraUpdatePropagation = false
8280

8381
controller.mapView.locationManager = locationManager
8482

@@ -87,7 +85,6 @@ public struct MapView<T: MapViewHostViewController>: UIViewControllerRepresentab
8785
controller.mapView.styleURL = styleURL
8886
}
8987

90-
print("MapView setting initial camera to \(camera.state)")
9188
context.coordinator.applyCameraChangeFromStateUpdate(
9289
controller.mapView,
9390
camera: camera,

0 commit comments

Comments
 (0)