Since WatchOS11 I also experience this. Only by setting the newLocation to my Published var location will cause the leak.
inline-code
func update(newLocation: CLLocation){
// print("new location (location)")
if (self.locationFix == false) {
self.locationFix = true
}
location = newLocation
func locationManager(_ manager: CLLocationManager, didUpdateLocations locations: [CLLocation]) {
if let location = locations.last {
self.update(newLocation: location)
}
}
Topic:
App & System Services
SubTopic:
Maps & Location
Tags: