Skip to content

CLLocationManagerDelegate is never called #3278

Closed Answered by naldal
naldal asked this question in Q&A
Discussion options

You must be logged in to vote

I found what the problem was: I had marked public override init() in the main actor annotation, but it wasn't actually running on the main thread. So I initialised the CLLocationManager in a lazy var and annotated the lazy var with the MainActor annotation.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by naldal
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant