---
title: objects
framework: healthkit
role: symbol
role_heading: Instance Property
path: healthkit/hkcorrelation/objects
---

# objects

The set of sample objects that make up the correlation.

## Declaration

```swift
var objects: Set<HKSample> { get }
```

## Discussion

Discussion This property contains the quantity and category samples that are grouped into this correlation. Blood pressure correlations always include two quantity samples that represent the systolic and diastolic values. In contrast, food correlations can contain a wide range of dietary information about the food, including information about the fat, protein, carbohydrates, energy, and vitamins consumed.

## See Also

### Getting Correlation Data

- [correlationType](healthkit/hkcorrelation/correlationtype.md)
- [objects(for:)](healthkit/hkcorrelation/objects(for:).md)
