<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "ARKit",
  "identifier" : "/documentation/ARKit/ARTrackedRaycast/stopTracking()",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "ARKit"
    ],
    "preciseIdentifier" : "c:objc(cs)ARTrackedRaycast(im)stopTracking"
  },
  "title" : "stopTracking()"
}
-->

# stopTracking()

Stops repeating the raycast query.

```
func stopTracking()
```

## Discussion

A tracked raycast updates continuously until you stop it explicitly by calling [`stopTracking()`](/documentation/ARKit/ARTrackedRaycast/stopTracking()). A raycast will automatically stop when:

- ARKit calls [`sessionWasInterrupted(_:)`](/documentation/ARKit/ARSessionObserver/sessionWasInterrupted(_:)).
- You change the session’s configuration.
- You deallocate the [`ARTrackedRaycast`](/documentation/ARKit/ARTrackedRaycast).

---

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)