---
title: newAnchor
framework: healthkit
role: symbol
role_heading: Instance Property
path: healthkit/hkanchoredobjectquerydescriptor/result/newanchor
---

# newAnchor

A value corresponding to the last sample that the anchor query has returned.

## Declaration

```swift
let newAnchor: HKQueryAnchor
```

## Discussion

Discussion Subsequent anchor object queries can use this anchor to receive only the samples saved and objects deleted after this query completed.

## See Also

### Accessing the Results

- [addedSamples](healthkit/hkanchoredobjectquerydescriptor/result/addedsamples.md)
- [deletedObjects](healthkit/hkanchoredobjectquerydescriptor/result/deletedobjects.md)
