Policy · Apple Health

Apple Health & HackDiet.

Apple Health fills empty days. Days you type in HackDiet are never overwritten. If Apple Health has several weights on the same day, HackDiet uses the latest one.

The contract

HackDiet's source of truth is one daily weight. Apple Health is a stream of timestamped samples that may have any number of entries per day from any number of sources. To make these two models cooperate, HackDiet follows seven simple rules:

  1. If you typed a value in HackDiet, it stays. Apple Health never silently replaces something you logged manually.
  2. Apple Health fills empty days only. When HackDiet has no weight for a given day, the latest Health sample for that day fills the gap.
  3. For multiple Health samples on one day, HackDiet uses the latest. Not an average. Matches what the Apple Health app shows in its "Latest" view.
  4. Once you edit an imported value, it becomes manual. From that point on, rule 1 protects it.
  5. HackDiet only writes values you created in HackDiet back to Apple Health. Imports from XML, CSV, or live Health sync never get pushed back — that would create duplicate provenance loops.
  6. HackDiet remembers what it wrote. When you edit or delete a HackDiet entry that synced to Health, HackDiet finds and updates (or removes) the matching Health sample. If that operation fails for any reason, your action in HackDiet still goes through — the worst case is one stale Health sample, never lost data.
  7. No conflict UI. The rules above are clear enough that a "resolve this conflict" screen is never needed. The Day Editor in HackDiet lets you override anything by typing a new value.

Two ways to use Apple Health

Settings › Apple Health offers two distinct actions:

You can do either, both, or neither. They work independently.

Permissions

Apple lets you toggle Read and Write permission separately when HackDiet first asks. Most setups want both, but partial grants are valid:

If you grant only one direction, HackDiet shows a brief alert explaining what's missing — nothing fails silently. To change the grant later, go to iOS Settings › Privacy & Security › Health › HackDiet.

Resetting Apple Health data

HackDiet has two distinct "data lives" on your iPhone:

  1. Its own database (weights, plan, history).
  2. Body-mass samples it wrote to Apple Health.

HackDiet › Settings › Erase all data wipes (1). The confirmation gives you two destructive options:

To remove HackDiet's Apple Health data without erasing the local app: open the Health app › Sources › HackDiet › "Delete All Data from this Source." This is a feature of iOS, not HackDiet, and it leaves all other Apple Health data intact.

What happens to other Apple Health metrics

Nothing. HackDiet only reads and writes one type: Body Mass. It cannot see and cannot affect step counts, sleep, heart rate, blood pressure, nutrition, exercise, or any other metric in Apple Health.

Edge cases & known trade-offs