---
title: defaultCaptureScope
framework: metal
role: symbol
role_heading: Instance Property
path: metal/mtlcapturemanager/defaultcapturescope
---

# defaultCaptureScope

The capture scope to use when a capture is initiated in Xcode.

## Declaration

```swift
var defaultCaptureScope: (any MTLCaptureScope)? { get set }
```

## Discussion

Discussion Use this property to specify a default capture scope for Xcode to use when the user presses the capture button. You can still long-press the button to select a different capture scope. The default value is nil. When the value is nil, the capture scope is defined by drawable presentation boundaries; such as those created by calls to present(_:) or present().

## See Also

### Creating a capture scope

- [makeCaptureScope(device:)](metal/mtlcapturemanager/makecapturescope(device:).md)
- [makeCaptureScope(commandQueue:)](metal/mtlcapturemanager/makecapturescope(commandqueue:)-1rozd.md)
