Welcome to the Swift Data Workout Tracker repository! This project serves as a sample application showcasing how to effectively use Swift Data, Apple's latest framework to store data, to build a simple workout tracker. The goal of the workout tracker is to assist athletes in logging their nightly gym sessions, recording the weights used for each exercise, and tracking their progress over time using a convenient Chart view.
-
Workout Logging: Users can log their daily workouts, specifying the exercise, sets, repetitions, and the weight used.
-
Data Storage with Swift Data: The application utilizes Swift Data, to securely store workout data on the device.
-
Progress Tracking: Athletes can visualize their progress over weeks using the Chart view, allowing them to see improvements and make informed adjustments to their training routines.
Make sure you have the following tools installed:
- Xcode 15: Download
-
Clone the repository to your local machine:
https://github.com/gharary/muscle-tracker-with-swift-data.git
-
Open the project in Xcode.
-
Build and run the application on a simulator or a physical device.
- Launch the app on your device.
- Navigate to the "Workout Data" tab.
- Click
+
button and in the new view, add some workouts - Select a workout and in the new view, fill in the details of your workout, including date and weight.
- Save the workout entry.
To track your progress over time:
- Go to the "Workout Progress" tab.
- Select a workout from top and view the chart to visualize your workout data and track your improvements.
If you'd like to contribute to the project, follow these steps:
- Fork the repository.
- Create a new branch for your feature or bug fix
- Submit a pull request.
This project is licensed under the MIT License.
Thank you for checking out the Swift Data Workout Tracker! If you have any questions or suggestions, feel free to open an issue or reach out to the maintainers.
Happy coding! 🚀