Skip to content

Commit d67da05

Browse files
committed
Remove NSObject from async location manager
1 parent 61f3c96 commit d67da05

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Sources/AsyncLocationKit/AsyncLocationManager.swift

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,17 @@ public typealias VisitMonitoringStream = AsyncStream<VisitMonitoringEvent>
99
public typealias HeadingMonitorStream = AsyncStream<HeadingMonitorEvent>
1010
public typealias BeaconsRangingStream = AsyncStream<BeaconRangeEvent>
1111

12-
public final class AsyncLocationManager: NSObject {
12+
public final class AsyncLocationManager {
1313

1414
public private(set) var locationManager: CLLocationManager
1515
private var proxyDelegate: AsyncDelegateProxyInterface
1616
private var locationDelegate: CLLocationManagerDelegate
1717

18-
public override init() {
18+
public init() {
1919
locationManager = CLLocationManager()
2020
proxyDelegate = AsyncDelegateProxy()
2121
locationDelegate = LocationDelegate(delegateProxy: proxyDelegate)
2222
locationManager.delegate = locationDelegate
23-
super.init()
2423
}
2524

2625
public func requestAuthorizationWhenInUse() async -> CLAuthorizationStatus {

0 commit comments

Comments
 (0)