Post

Replies

Boosts

Views

Activity

Reply to How to save a workout with a route on a locked iPhone ?
Did you resolve your issue? I had the same problem and can provide some guidance. Before saving the route I first check UIApplication.shared.isProtectedDataAvailable to see if HealthKit is locked. If it locked, then I basically postpone adding the route to the workout until the user unlocks the phone. I give the user a voice alert to open the app so the route can be saved. This is a big hack and I wish Apple would provide a better solution to saving workouts and routes when the phone is locked.
Oct ’22
Reply to SF Symbols missing in iOS 13 version of app
Answering my one question in case it helps someone. All the SF Symbols were referenced in Storyboards and were using a rendering mode as Automatic. Changing to Template seems to fix the issue. I'm not sure why this broke in iOS 13 when I moved to Xcode 12. BTW, the original message had a type x.mark.circle -> xmark.circle.
Dec ’20
Reply to Horizontal Accuracy on Apple Watch Series 3 and iOS 14 is terrible
These are the settings I use to for workout route maps:     lazy var locationManager: CLLocationManager = {         let _locationManager = CLLocationManager()         _locationManager.desiredAccuracy = kCLLocationAccuracyBest         _locationManager.activityType = .fitness         _locationManager.allowsBackgroundLocationUpdates = true         _locationManager.distanceFilter = kCLDistanceFilterNone         return _locationManager     }()
Jul ’20