Skip to content

vespinola/ExerciseTracker

Repository files navigation

ExerciseTracker

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.

🌟 Why I Built This Project

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.

✨ Features

  • 📊 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

🚀 Getting Started

Prerequisites

  • Xcode 16.4+
  • iOS 17.6+ deployment target
  • Swift 6

Setup

  1. Clone the repository:
    git clone https://github.com/yourusername/ExerciseTracker.git
  2. Open the project in Xcode:
    cd ExerciseTracker
    open ExerciseTracker.xcodeproj
  3. Build and run the app on a physical device (HealthKit is not supported in simulators).

🎥 Demo

Here is a demo of the app in action:

Demo

🛠 Tech Stack

  • Swift 6
  • SwiftUI
  • HealthKit
  • Charts

📝 TODO

  • 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

🤝 Contributing

Contributions are welcome! If you have suggestions, bug reports, or improvements, feel free to open an issue or submit a pull request.

About

A SwiftUI & HealthKit-based app to track steps, calories, and body mass.

Topics

Resources

License

Stars

Watchers

Forks

Languages