Our great sponsors
-
Map
MKMapView wrapper for SwiftUI as drop-in to MapKit's SwiftUI view. Easily extensible annotations and overlays, iOS 13 support and backwards compatible with MKAnnotation and MKOverlay! (by pauljohanneskraft)
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
Do you have some links to things you found in your investigation? Animated overlays are something I’ve been researching recently and the only thing I’ve found is this: https://github.com/TheClimateCorporation/TCCMapTileAnimation. Have you found more?
You can find a first approach in this pull request I opened. It allows you to effectively call setNeedsDisplay on the MKOverlayRenderer in use by use of Combine publishers and gives you custom access to the draw and canDraw methods of MKOverlayRenderer directly - would love this to be a SwiftUI view instead, but I'm not sure how to draw into a cgcontext directly - maybe with a UIHostingController and then draw its view into the cgcontext? but then again, how would you map the SwiftUI view to individual MKMapPoints? not sure, if this would ever be a simple task.
Related posts
- Publishing changes from within view updates is not allowed, this will cause undefined behavior. on Map with Annotations
- Map clustering for new Map()
- Any good tutorials on how to get directions in a map for swiftui?
- Introducing PagerTabStripView! - Finally a PagerView in pure SwiftUI | Xmartlabs Blog
- Is it time to spend some money?