Skip to content

piscoTech/GymTracker

Repository files navigation

Gym Tracker

Do you go to the gym and are tired of manually keep track of exercizes, sets and weight? With Gym Tracker you no longer need to carry a piece of paper and a pen around, even your phone if you have an Apple Watch:

  • Create any number of workouts with fully customizable exercizes
  • Archive workouts you no longer use
  • Quickly start any non-archived workout
  • Let the app guide you through exercizes and rests with timers and notifications
  • Easily change the weight at the end of a set
  • Crash safe: don't worry if something bad happens during a workout, your progress is saved and you can resume as soon as you reopen the app

At the end your workout is automatically saved inside the Health app, if you're using an Apple Watch with detailed heart rate and calories.

Backup and restore your workouts using iCloud Drive or export and share them with your friends. Backups and exported workout are in XML format and easily accessible from inside the iCloud Drive folder and app, you can manually edit them and import them again, before import data is validated against this XSD grammar.

Download on the AppStore

Project Setup

The framework MBLibrary referenced by this project is available here, version currently in use is 1.9.1.

Customization

General behaviour of the app can be configured via global and static variables:

  • File Main iOS & watchOS.swift:
    • healthReadData and healthWriteData: The list of data types to be read and written to Health.
  • Class GTRest:
    • maxRest: Max rest period allowed in seconds, make sure it's a multiple of 30 seconds, or whatever you set in restStep.