---
title: destinationRect
framework: screencapturekit
role: symbol
role_heading: Instance Property
path: screencapturekit/scstreamconfiguration/destinationrect
---

# destinationRect

A rectangle that specifies a destination into which to write the output.

## Declaration

```swift
var destinationRect: CGRect { get set }
```

## Discussion

Discussion If you don’t specify a destination rectangle, the system uses the full dimensions of the output surface. note: The system doesn’t reference this value when capturing a single window because it draws the window into the output’s full bounds.

## See Also

### Specifying dimensions

- [width](screencapturekit/scstreamconfiguration/width.md)
- [height](screencapturekit/scstreamconfiguration/height.md)
- [scalesToFit](screencapturekit/scstreamconfiguration/scalestofit.md)
- [sourceRect](screencapturekit/scstreamconfiguration/sourcerect.md)
- [preservesAspectRatio](screencapturekit/scstreamconfiguration/preservesaspectratio.md)
