Global Variable


The version number for a piece of data, used when updating or syncing.


let HKMetadataKeySyncVersion: String


This key takes an NSNumber as its value. When you save an object to the HealthKit store, the new object replaces any matching objects (existing objects with a matching HKMetadataKeySyncIdentifier value) with a lower sync version.

For more information, see HKMetadataKeySyncIdentifier.

See Also

Sync Keys

let HKMetadataKeySyncIdentifier: String

A unique string that identifies a piece of data so it can be updated and synced.