Post

Replies

Boosts

Views

Activity

cycling workouts
I wrote an app that successfully adds a cycling workout to HealthKit. I can see in the Health app that there are new entries under "Workouts", "Active Energy", and "Exercise Minutes" all from me just adding an HKWorkout and a HKQuantitySample. However, there is no new entry for "Cycling Distance". I assumed that since the workout I added includes the fact that the activityType is HKWorkoutActivityType.cycling and I provided the distance, that it would also add an entry for "Cycling Distance". Is there something extra I need to do to get that?
2
0
1.1k
Feb ’23
inspector view modifier
I'm trying to learn how to use the inspector view modifier. I have a very simple app here: https://github.com/mvolkmann/InspectorDemo/blob/main/InspectorDemo/ContentView.swift. Clicking the info button in the toolbar of the main view displays an inspector sheet. The inspector sheet has its own toolbar that displays buttons in a ControlGroup. Clicking the info button again dismisses the inspector sheet. The issue is that when I display the inspector sheet again, its toolbar is gone. Why does it only render the first time the inspector sheet is displayed?
0
0
536
Jun ’23