Open letko-dmitry opened 4 years ago
I don't see any preconditions in the framework that could cause this. This is probably a MapKit exception.
Em, yes, exactly. And it forces us to set coordinate of an annotation on the main thread.
I'm seeing this crash in our app as well. Any workarounds?
DispatchQueue.main.async {
self.clusterManager.reload(self.mapView)
}
https://github.com/efremidze/Cluster/blob/3c70568c779456355895adf354a01e7fe5440ebf/Sources/Cluster.swift#L335
The line of code above triggers UI update via KVO on background thread and it leads to a crash because of precondition.