SwiftLocation icon indicating copy to clipboard operation
SwiftLocation copied to clipboard

[Bug]: Main thread warning

Open ucerxxx opened this issue 1 year ago • 2 comments

Platform Version

17.0-17.4

SDK Version

6.0.0

Xcode Version

15.3

Steps To Reproduce

On init of Location: Location() Xcode produce a warning. Even without accessing any properties of Location object or calling any functions.

Expected Behavior

No warnings)

Actual Incorrect Behavior

`extension CLLocationManager: LocationManagerProtocol {

public func locationServicesEnabled() -> Bool {
    CLLocationManager.locationServicesEnabled()
}

...Xcode produce warning: This method can cause UI unresponsiveness if invoked on the main thread. Instead, consider waiting for the-locationManagerDidChangeAuthorization:callback and checkingauthorizationStatus` first.

ucerxxx avatar May 30 '24 00:05 ucerxxx

is there any workaround for this please?

dpyy avatar Aug 13 '24 01:08 dpyy

Bump! Any progress on this?

Sam-Spencer avatar Nov 14 '24 21:11 Sam-Spencer