ExerciseTracker is an iOS app built with Swift and SwiftUI that helps you monitor and analyze your fitness activity.
It integrates with Apple HealthKit to fetch data such as steps, distance, and body mass, and displays it in charts over different time ranges.
A few months ago, I decided I wanted to lose weight, but I didn’t like having to open separate health and fitness apps on my iPhone. As an iOS engineer working as an SDET, I also wanted to practice my SwiftUI skills. So, I built ExerciseTracker to have a single app where I can track calories burned, step count, distance, and even my body mass over time. It’s been a great way to streamline my own fitness journey while honing my development skills.
- 📊 Track steps, distance, and body mass
- 📅 View activity by day, week, month, and year
- 📈 Interactive charts with dynamic domains and labels
- 💡 HealthKit integration for real-time fitness data
- Xcode 16.4+
- iOS 17.6+ deployment target
- Swift 6
- Clone the repository:
git clone https://github.com/yourusername/ExerciseTracker.git
- Open the project in Xcode:
cd ExerciseTracker open ExerciseTracker.xcodeproj
- Build and run the app on a physical device (HealthKit is not supported in simulators).
Here is a demo of the app in action:
- Swift 6
- SwiftUI
- HealthKit
- Charts
- Add unit tests for HealthKit data handling
- Add UI automation with XCUITest for navigation and user flows
- Improve chart styling and add more customization options
Contributions are welcome! If you have suggestions, bug reports, or improvements, feel free to open an issue or submit a pull request.