mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 06:55:59 +00:00
Fix message composer presendCallback warnings
This commit is contained in:
committed by
Stefan Ceriu
parent
37ed7addf5
commit
a5fe629790
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user