Search code examples
ioshealthkit

Is it possible to add sample description in HealthKit?


I'm saving user's glucose in health kit, however I'm wondering if there is some way to store user description to that measurement too?


Solution

  • You can add custom data to an HKSample by adding that data to the metadata dictionary when creating the sample.