---
title: stopCapture()
framework: metal
role: symbol
role_heading: Instance Method
path: metal/mtlcapturemanager/stopcapture()
---

# stopCapture()

Stops capturing Metal commands.

## Declaration

```swift
func stopCapture()
```

## Discussion

Discussion Calling this method stops a capture that was started manually in Xcode or programmatically by calling one of the methods on MTLCaptureManager. When using a custom capture scope, calling this function preempts any end() demarcations of the capture scope.
