Fix message composer presendCallback warnings

This commit is contained in:
Stefan Ceriu
2024-09-06 12:05:29 +03:00
committed by Stefan Ceriu
parent 37ed7addf5
commit a5fe629790
4 changed files with 8 additions and 5 deletions
@@ -173,7 +173,7 @@ extension MapLibreMapView {
}
func mapView(_ mapView: MGLMapView, regionDidChangeAnimated animated: Bool) {
// Fixes: "Publishing changes from within view updates is not allowed, this will cause undefined behavior."
// Avoid `Publishing changes from within view update` warnings
DispatchQueue.main.async { [mapLibreView] in
mapLibreView.mapCenterCoordinate = mapView.centerCoordinate
}