Skip to content

Commit 3771d02

Browse files
committed
Cleanup
1 parent 7bff6a6 commit 3771d02

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

Sources/MapLibreSwiftUI/MapViewCoordinator.swift

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -348,18 +348,14 @@ public class MapViewCoordinator<T: MapViewHostViewController>: NSObject, MLNMapV
348348

349349
/// The MapView's region has changed with a specific reason.
350350
public func mapView(_ mapView: MLNMapView, regionDidChangeWith reason: MLNCameraChangeReason, animated _: Bool) {
351-
// FIXME: CI complains about MainActor.assumeIsolated being unavailable before iOS 17, despite building on iOS 17.2... This is an epic hack to fix it for now. I can only assume this is an issue with Xcode pre-15.3
352351
// TODO: We could put this in regionIsChangingWith if we calculate significant change/debounce.
353352
MainActor.assumeIsolated {
354353
updateViewPort(mapView: mapView, reason: reason)
355-
}
356-
357-
guard !suppressCameraUpdatePropagation else {
358-
return
359-
}
354+
355+
guard !suppressCameraUpdatePropagation else {
356+
return
357+
}
360358

361-
// FIXME: CI complains about MainActor.assumeIsolated being unavailable before iOS 17, despite building on iOS 17.2... This is an epic hack to fix it for now. I can only assume this is an issue with Xcode pre-15.3
362-
MainActor.assumeIsolated {
363359
updateParentCamera(mapView: mapView, reason: reason)
364360
}
365361
}

0 commit comments

Comments
 (0)