Skip to content

Commit 41a696d

Browse files
committed
update
1 parent cd74800 commit 41a696d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Sources/d3-async-location/LocationManagerAsync.swift

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ public final class LocationManagerAsync: NSObject, CLLocationManagerDelegate, IL
1616
/// Location manager
1717
private let manager : CLLocationManager
1818

19+
/// Authorization Permission helper
20+
private var permission : Permission
21+
1922
// Streaming locations
2023

2124
/// Async stream of locations
@@ -35,9 +38,6 @@ public final class LocationManagerAsync: NSObject, CLLocationManagerDelegate, IL
3538
}
3639
}
3740

38-
/// Authorization Permission helper
39-
private var permission : Permission
40-
4141
// MARK: - Life circle
4242

4343
/// - Parameters:
@@ -54,6 +54,7 @@ public final class LocationManagerAsync: NSObject, CLLocationManagerDelegate, IL
5454
override init(){
5555

5656
manager = .init()
57+
5758
permission = .init(status: manager.authorizationStatus)
5859

5960
super.init()

Sources/d3-async-location/Permission.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77

88
import CoreLocation
99

10-
1110
/// Helper class to determine permission to get access for streaming CLLocations
1211
final class Permission{
1312

0 commit comments

Comments
 (0)