---
title: stopTracking()
framework: arkit
role: symbol
role_heading: Instance Method
path: arkit/artrackedraycast/stoptracking()
---

# stopTracking()

Stops repeating the raycast query.

## Declaration

```swift
func stopTracking()
```

## Discussion

Discussion A tracked raycast updates continuously until you stop it explicitly by calling stopTracking(). A raycast will automatically stop when: ARKit calls sessionWasInterrupted(_:). You change the session’s configuration. You deallocate the ARTrackedRaycast.
