<!--
{
  "availability" : [
    "visionOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "ARKit",
  "identifier" : "/documentation/ARKit/AccessoryTrackingProvider/predictAnchor(for:at:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "ARKit"
    ],
    "preciseIdentifier" : "s:5ARKit25AccessoryTrackingProviderC13predictAnchor3for2atAA0bF0VSgAH_SdtF"
  },
  "title" : "predictAnchor(for:at:)"
}
-->

# predictAnchor(for:at:)

Predict an accessory anchor to a target timestamp.

```
final func predictAnchor(for anchor: AccessoryAnchor, at timestamp: TimeInterval) -> AccessoryAnchor?
```

## Parameters

`anchor`

A tracked anchor from `latestAnchors` to generate prediction for.

`timestamp`

Target time for prediction. For rendering use cases with CompositorServices, use `drawable.frameTiming.trackableAnchorPredictionTime`.

## Return Value

The predicted anchor, or nil if prediction failed.

## Discussion> Note: A large time offset from latest anchor timestamp could degrade accuracy. For accuracy sensitive use cases like drawing, use a small offset or `latestAnchors`.
> Use a prediction timestamp smaller than the latest anchor timestamp for interpolation.

---

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)