uuid
The activity’s universally unique identifier (UUID).
Declaration
var uuid: UUID { get }Discussion
HealthKit assigns a UUID to the workout activity when you create it. If you want to add your own unique ID, add it to the activity’s metadata using the HKMetadataKeyExternalUUID key.