---
title: sources
framework: healthkit
role: symbol
role_heading: Instance Property
path: healthkit/hkstatistics/sources
---

# sources

An array containing all the sources contributing to these statistics.

## Declaration

```swift
var sources: [HKSource]? { get }
```

## Discussion

Discussion If the separateBySource option was specified, this property holds an array of all the sources included in the calculations. If the separateBySource option was not specified, the property contains nil.

## See Also

### Getting Property Data

- [startDate](healthkit/hkstatistics/startdate.md)
- [endDate](healthkit/hkstatistics/enddate.md)
- [quantityType](healthkit/hkstatistics/quantitytype.md)
