---
title: sourceRect
framework: screencapturekit
role: symbol
role_heading: Instance Property
path: screencapturekit/scstreamconfiguration/sourcerect
---

# sourceRect

A rectangle that specifies the source area to capture.

## Declaration

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

## Discussion

Discussion If you don’t specify a source rectangle to capture, the system captures the entire display. note: The system doesn’t reference this value when you capture a single window because it captures the full bounds of the window.

## See Also

### Specifying dimensions

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