Skip to content

Commit 49fe1cc

Browse files
committed
Fix AsyncLocationManager initializer
1 parent 0ecd496 commit 49fe1cc

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

AsyncLocationKit.podspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Pod::Spec.new do |s|
22
s.name = 'AsyncLocationKit'
33
s.module_name = 'AsyncLocationKit'
4-
s.version = '1.5.4'
4+
s.version = '1.5.5'
55
s.summary = '📍async/await CoreLocation'
66
s.homepage = 'https://github.com/AsyncSwift/AsyncLocationKit'
77
s.license = 'MIT'

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ Wrapper for Apple `CoreLocation` framework with new Concurency Model. No more `d
1111
##### SPM
1212
```swift
1313
dependencies: [
14-
.package(url: "https://github.com/AsyncSwift/AsyncLocationKit.git", .upToNextMinor(from: "1.5.4"))
14+
.package(url: "https://github.com/AsyncSwift/AsyncLocationKit.git", .upToNextMinor(from: "1.5.5"))
1515
]
1616
```
1717

1818
#### Cocoapods
1919
```
20-
pod 'AsyncLocationKit', :git => 'https://github.com/AsyncSwift/AsyncLocationKit.git', :tag => '1.5.4'
20+
pod 'AsyncLocationKit', :git => 'https://github.com/AsyncSwift/AsyncLocationKit.git', :tag => '1.5.5'
2121
```
2222

2323

Sources/AsyncLocationKit/AsyncLocationManager.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,10 @@ public final class AsyncLocationManager {
4747

4848
public init(locationManager: CLLocationManager, desiredAccuracy: LocationAccuracy) {
4949
self.locationManager = locationManager
50-
self.locationManager.delegate = locationDelegate
51-
self.locationManager.desiredAccuracy = desiredAccuracy.convertingAccuracy
5250
proxyDelegate = AsyncDelegateProxy()
5351
locationDelegate = LocationDelegate(delegateProxy: proxyDelegate)
52+
self.locationManager.delegate = locationDelegate
53+
self.locationManager.desiredAccuracy = desiredAccuracy.convertingAccuracy
5454
}
5555

5656
public convenience init(desiredAccuracy: LocationAccuracy) {

0 commit comments

Comments
 (0)