---
title: videoGravity
framework: avkit
role: symbol
role_heading: Instance Property
path: avkit/avcaptureview/videogravity
---

# videoGravity

A string value that defines how the capture view displays video within its bounds.

## Declaration

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

## Discussion

Discussion See AVLayerVideoGravity for supported values. The default value is resizeAspect.

## See Also

### Customizing the View

- [controlsStyle](avkit/avcaptureview/controlsstyle.md)
- [AVCaptureViewControlsStyle](avkit/avcaptureviewcontrolsstyle.md)
