(Go: >> BACK << -|- >> HOME <<)

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Main thread warning #385

Open
ucerxxx opened this issue May 30, 2024 · 0 comments
Open

[Bug]: Main thread warning #385

ucerxxx opened this issue May 30, 2024 · 0 comments
Labels

Comments

@ucerxxx
Copy link
ucerxxx commented May 30, 2024

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 ucerxxx added the bug label May 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant