<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 13.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 6.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "HealthKit",
  "identifier" : "/documentation/HealthKit/HKDiscreteQuantitySample/mostRecentQuantity",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "HealthKit"
    ],
    "preciseIdentifier" : "c:objc(cs)HKDiscreteQuantitySample(py)mostRecentQuantity"
  },
  "title" : "mostRecentQuantity"
}
-->

# mostRecentQuantity

The most recent quantity contained by the sample.

```
@NSCopying var mostRecentQuantity: HKQuantity { get }
```

## Discussion

The sample sorts its contained quantities based on the <doc://com.apple.documentation/documentation/Foundation/NSDateInterval/startDate> property for the quantity’s date interval.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)