A HealthKit source, representing the app or device that created this object.
- iOS 8.0–9.0Deprecated
- Mac Catalyst 13.0–13.0Deprecated
- watchOS 2.0–2.0Deprecated
source property is only available on objects you have retrieved from the HealthKit store. When you create a new object, the source is set to
nil. The system automatically sets the source property when you save the object to the HealthKit store. The source is then available the next time the object is retrieved from the store.