metadata
The metadata associated with the deleted object.
Declaration
var metadata: [String : Any]? { get }Discussion
The system only copies the HKMetadataKeySyncIdentifier and HKMetadataKeySyncVersion keys from the original object. All other metadata is lost.
For more information about the metadata’s format and content, see the HKObject class’s metadata property.