metadata
Metadata that describes the activity.
Declaration
var metadata: [String : Any]? { get }Discussion
The metadata dictionary contains extra information describing this activity. The dictionary’s keys are all NSString objects. The values can be NSString objects, NSNumber objects or NSDate objects. For a complete list of predefined metadata keys, see Metadata Keys.
Using predefined keys helps facilitate sharing data between apps; however, you are also encouraged to create your own, custom keys as needed to extend the workout activity’s capabilities.