The Apple Health app only shows you your active and resting calories for the day as individual metrics. The aim of this widget is to display the total combined calories burned today as a single number on the home screen.
Home screen widgets will be released with iOS 14, and this seems to be a good project to learn Swift.
Example screenshot:
- Create medium sized widget including graph of calories burned over last 7 days
- Make widget configurable, with option to show "net" calories (when including dietary calories)
This project is licensed under the MIT License - see the LICENSE.md file for details
- Invaluable insight into how to create a widget gleaned from this SwiftRocks tutorial
- StackoverFlow answer explaining how to query HealthKit for daily totals of metrics
- More learning about HealthKit from here and here
- This example from the Apple Developer documentation