SwiftLocation
SwiftLocation copied to clipboard
⚓️ Async/Await CLLocationManager Wrapper for Apple Platforms
How to observe authorization status changes? in old version of the framework, we can use following methods. `LocationManager.shared.requireUserAuthorization()` `LocationManager.shared.onAuthorizationChange.add { }` `LocationManager.shared.onAuthorizationChange.remove()` But I'm not seeing those methods in updated...
Hi there, Looking through the commits, the previous version (Locator) had the ability to subscribe to CLHeading change events, but I can't see anything in the documentation to do the...
SwiftLocation.gpsLocation().then { (result) in switch result { case .success(let newData): print("New location: \(newData)") case .failure(let error): print("An error has occurred: \(error.localizedDescription)") } }
Corrected `Getting user location via GPS` in the README.md.
I want to disable all logs from the SDK. But LocationManager.Logger.isEnabled is internal access.
In the case of: SwiftLocation.gpsLocation(accuracy: .neighborhood).then { result in switch result { case .success(let locationData): do some successfull processing case .failure( _): do some failure processing } } How do...
In the case of: ```swift SwiftLocation.gpsLocation(accuracy: .neighborhood).then { result in switch result { case .success(let locationData): // do some successfull processing case .failure( _): // do some failure processing }...
This PR: * removes dependency on CocoaPods from the playground app and references the library Package.swift instead. * updates code where deprecations warnings were prompted by the compiler * adds...
For CLLocationManager, I can use ```func locationManagerDidChangeAuthorization(_ manager: CLLocationManager)``` to observe. But since I'm using this framework, can anybody tell me how to observe authorizationStatusChange with __SwiftLocation__?  I found...