---
title: videoRect
framework: avfoundation
role: symbol
role_heading: Instance Property
path: avfoundation/avplayerlayer/videorect
---

# videoRect

The current size and position of the video image that displays within the layer’s bounds.

## Declaration

```swift
var videoRect: CGRect { get }
```

## Discussion

Discussion The size and position of a rectangle depends on the aspect ratio of the media (16:9 or 4:3), the layer’s bounds, and the value of its videoGravity property. This property is key-value observable.

## See Also

### Configuring the presentation

- [videoGravity](avfoundation/avplayerlayer/videogravity.md)
- [AVLayerVideoGravity](avfoundation/avlayervideogravity.md)
