---
title: cropRect
framework: avfoundation
role: symbol
role_heading: Instance Property
path: avfoundation/avcapturescreeninput/croprect
---

# cropRect

Indicates the bounding rectangle of the screen area to be captured, in pixels.

## Declaration

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

## Discussion

Discussion By default, AVCaptureScreenInput captures the entire area of the displayID with which it is associated. Set the value of this property to limit the capture rectangle to a subsection of the screen. The rectangle should define a smaller section of the screen in the screen’s coordinate system. The origin (0,0) is the bottom-left corner of the screen.

## See Also

### Setting video capture options

- [minFrameDuration](avfoundation/avcapturescreeninput/minframeduration.md)
- [scaleFactor](avfoundation/avcapturescreeninput/scalefactor.md)
