Replies: 5 comments
-
@saroar Can you reproduce the problem outside of the library in vanilla CoreLocation? Our library is a lightweight wrapper around CoreLocation so we don't imagine that it would behave differently. |
Beta Was this translation helpful? Give feedback.
-
I was facing the same issue with a long time passing to requestLocation and today did review my setup since I thought there must be a mistake. But after some benchmarking I saw a regular
I used
so seems like that works as expected. |
Beta Was this translation helpful? Give feedback.
-
I ended up using |
Beta Was this translation helpful? Give feedback.
-
@stephencelis is completely right, this code is just a wrapper around It looks like though, this repository would need a pull request to add this startUpdatingLocation() in the Example folder, so that we don't have this long delay when tapping the button. I will try to see if I can do one it if I got time. |
Beta Was this translation helpful? Give feedback.
-
Actually this is not that straightforward, because if you use So to sum up:
In conclusion, if you want to retrieve the user location, I think using // .currentLocationButtonTapped action
case .authorizedAlways, .authorizedWhenInUse:
guard let userLocation = CLLocationManager().location?.coordinate else {
return .none
}
state.region = CoordinateRegion.init(center: userLocation, span: state.region.span)
return .none Would be nice to have the thoughts of one of the maintainer to confirm this solution is okay 👍 |
Beta Was this translation helpful? Give feedback.
-
Describe the bug
I don't know what is the problem I just know the issue and send a small video clip also click any point of interest button that does not work
I run your demo app and it takes too much time to my iPhone 6s
take too much time to update the current location
Expected behavior
it should take not more than 1/2s or less
Screenshots
RPReplay_Final1625561162.MP4
Environment
Additional context
Add any more context about the problem here.
Beta Was this translation helpful? Give feedback.
All reactions