File tree Expand file tree Collapse file tree 1 file changed +8
-11
lines changed
Expand file tree Collapse file tree 1 file changed +8
-11
lines changed Original file line number Diff line number Diff line change @@ -50,6 +50,14 @@ public final class AsyncLocationManager {
5050 self . desiredAccuracy = desiredAccuracy
5151 }
5252
53+ public func checkingPermissions( ) -> CLAuthorizationStatus {
54+ if #available( iOS 14 , * ) {
55+ return locationManager. authorizationStatus
56+ } else {
57+ return CLLocationManager . authorizationStatus ( )
58+ }
59+ }
60+
5361 public func updateAccuracy( with newAccuracy: LocationAccuracy ) {
5462 locationManager. desiredAccuracy = newAccuracy. convertingAccuracy
5563 }
@@ -195,14 +203,3 @@ public final class AsyncLocationManager {
195203 locationManager. stopRangingBeacons ( satisfying: satisfying)
196204 }
197205}
198-
199- extension AsyncLocationManager {
200- /// Check if user already allowed location permission
201- private func checkingPermissions( ) -> CLAuthorizationStatus {
202- if #available( iOS 14 , * ) {
203- return locationManager. authorizationStatus
204- } else {
205- return CLLocationManager . authorizationStatus ( )
206- }
207- }
208- }
You can’t perform that action at this time.
0 commit comments