---
title: videoGravity
framework: avfoundation
role: symbol
role_heading: Instance Property
path: avfoundation/avcapturevideopreviewlayer/videogravity
---

# videoGravity

A value that indicates how the layer displays video content within its bounds.

## Declaration

```swift
var videoGravity: AVLayerVideoGravity { get set }
```

## Discussion

Discussion Options are resizeAspect, resizeAspectFill, and resize. The default is resizeAspect. This property is animatable.

## See Also

### Layer configuration

- [isPreviewing](avfoundation/avcapturevideopreviewlayer/ispreviewing.md)
