Post

Replies

Boosts

Views

Activity

Reply to Potential memory leaks in CLLocationUpdate.Updates
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) } }
2w