Skip to content

Commit dc7f5e5

Browse files
committed
update
1 parent 54a4637 commit dc7f5e5

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@ If task will be canceled the streaming stops automatically. I would recomend to
5757
case coreLocationManagerError(CLError)
5858
```
5959

60+
There's been a glitch - throwing **CLError.locationUnknown** *Error Domain=kCLErrorDomain Code=0 "(null)"* on some devices and simulator while changing locations time by time. This type of error *.locationUnknown* is excluded when is happens in delegate method *didFailWithError*
61+
6062
### LMViewModel API
6163
```
6264
public protocol ILocationManagerViewModel: ObservableObject{

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ extension LocationManagerAsync{
4747
/// - error: The error object containing the reason the location or heading could not be retrieved
4848
func locationManager(_ manager: CLLocationManager, didFailWithError error: Error) {
4949
guard let e = error as? CLError else{ return }
50-
50+
5151
if e.code == CLError.locationUnknown{
5252
return /// glitch throwing this error on some devices and simulator while changing locations time by time
5353
}

0 commit comments

Comments
 (0)