Skip to content

Commit e238d40

Browse files
committed
update
1 parent 9b437a7 commit e238d40

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,14 @@ public protocol ILocationManagerViewModel: ObservableObject{
7979
|distanceFilter|A distance in meters from an existing location.|
8080
|backgroundUpdates|A Boolean value that indicates whether the app receives location updates when running in the background|
8181

82+
### Default location
83+
1. Product > Scheme > Edit Scheme
84+
2. Click Run .app
85+
3. Option tab
86+
4. Already checked Core Location > select your location
87+
5. Press OK
88+
![Default location](https://github.com/The-Igor/d3-async-location/blob/main/img/image6.png)
89+
8290
## SwiftUI example of using package
8391
[async-location-swift-example](https://github.com/The-Igor/async-location-swift-example)
8492

Sources/d3-async-location/LocationManagerAsync+/Delegate.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@ extension LocationManagerAsync{
4040
NotificationCenter.default.post(name: Permission.authorizationStatus, object: manager.authorizationStatus)
4141
}
4242

43+
func locationManager(_ manager: CLLocationManager, didFailWithError error: Error) {
44+
print(error)
45+
}
46+
4347
// MARK: - Private
4448

4549
/// Process termination

img/image6.png

67 KB
Loading

0 commit comments

Comments
 (0)