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

# videoGravity

A value that determines how the player view displays video content within its bounds.

## Declaration

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

## Discussion

Discussion The video gravity determines how the player view scales or stretches the video content within the player view’s bounds. The player view supports the following video gravity values: resizeAspect resizeAspectFill resize The default value is resizeAspect. This property is animatable.

## See Also

### Customizing the video presentation

- [isReadyForDisplay](avkit/avplayerview/isreadyfordisplay.md)
- [videoBounds](avkit/avplayerview/videobounds.md)
