Newly posted: a video from March 2023:
• Pushing the limits of Core Location by Nick Patrick
• Native UI, Shared Logic: Leveraging Kotlin Multiplatform to share code between iOS and Android by Carlo Rapisarda
Newly posted: a video from March 2023:
• Pushing the limits of Core Location by Nick Patrick
• Native UI, Shared Logic: Leveraging Kotlin Multiplatform to share code between iOS and Android by Carlo Rapisarda
A huge thank you to @twostraws and @StewartLynch for their incredible #MapKit and #CoreLocation resources, which were invaluable for implementing and truly understanding these iOS features in #SwiftUI.
Now, this is the first version of the app, I have tons of ideas to improve it but I wanted to get it in people's hands and see what people like, what they want, and how it's used 🙂
On the technical side, the app is entirely built in #SwiftUI (what did you expect?), and leverages #CoreLocation, #MapKit, #WeatherKit and a little bit of #SwiftCharts.
This app is the reason I filed and share many feedback related to these frameworks lately 😄
I'm beginning to think the #CoreLocation CLMonitor actor is badly designed. You can only have one instance per identifier (which regions are tied to) and you can only listen for async events stream in one place (if you use the stream twice there is corruption of next()). This means you can't use it from SwiftUI where there is no app level .task available. SwiftUI is designed to have multiple .task spread through out and can all create their own async streams.
https://developer.apple.com/documentation/corelocation/clmonitor
Just reported a #CoreLocation bug FB13696956
CLMonitor: No events received for a region added while app is running
Found another disappointing Apple #SwiftUI code sample, this time from the #CoreLocation team. They wrapped async/await Task in a Combine ObservableObject instead of just using the .task modifier. They could have also used @.AppStorage instead of UserDefaults.
https://developer.apple.com/documentation/corelocation/adopting_live_updates_in_core_location
Meet Core Location for spatial computing
#visionOS #CoreLocation #Swift #Programming
https://www.wwdcnotes.com/notes/wwdc23/10146/
Here's a gentle reminder that small steps lead to big changes. 🚀 I'm thrilled to announce the initial release of LocationApplication. This tool aims to simplify dealing with location services in Swift. It's built upon AppState, which promotes manageable code and improved testability. If you're working on location-based applications, this could be a handy tool for you.
https://github.com/0xLeif/LocationApplication
#SPM #LocationApp #AppState #Swift #corelocation #iOS #SwiftLang #SwiftUI #OpenSource #macos #mobile
With the new CLLocationUpdate API in #CoreLocation, is there a way to set the desiredAccuracy for the location updates?
I currently specify kCLLocationAccuracyNearestTenMeters on my CLLocationManager to only get GPS locations.
https://developer.apple.com/documentation/corelocation/cllocationupdate
So many reasons to target iOS 17+ & drop support for older versions:
- MapKit for #SwiftUI (annotations & overlays)
- #CoreLocation now supports live updates using Swift concurrency’s async/await capability
- #SwiftData (no, just a joke, I'll stick to my #CoreData stack for now)