Contents

uuid

The universally unique identifier (UUID) for this HealthKit object.

Declaration

var uuid: UUID { get }

Discussion

HealthKit assigns a UUID to the object when you create it. If you want to add your own unique ID, add it to the object’s metadata using the HKMetadataKeyExternalUUID key.

See Also

Accessing Properties