---
title: mostRecent
framework: healthkit
role: symbol
role_heading: Type Property
path: healthkit/hkstatisticsoptions/mostrecent
---

# mostRecent

An option indicating that the system returns the most recent quantity from the matching samples.

## Declaration

```swift
static var mostRecent: HKStatisticsOptions { get }
```

## See Also

### Constants

- [separateBySource](healthkit/hkstatisticsoptions/separatebysource.md)
- [discreteAverage](healthkit/hkstatisticsoptions/discreteaverage.md)
- [discreteMin](healthkit/hkstatisticsoptions/discretemin.md)
- [discreteMax](healthkit/hkstatisticsoptions/discretemax.md)
- [cumulativeSum](healthkit/hkstatisticsoptions/cumulativesum.md)
- [duration](healthkit/hkstatisticsoptions/duration.md)
