---
title: AVLayerVideoGravity
framework: avfoundation
role: symbol
role_heading: Structure
path: avfoundation/avlayervideogravity
---

# AVLayerVideoGravity

A structure that defines how a layer displays a player’s visual content within the layer’s bounds.

## Declaration

```swift
struct AVLayerVideoGravity
```

## Topics

### Video gravities

- [resize](avfoundation/avlayervideogravity/resize.md)
- [resizeAspect](avfoundation/avlayervideogravity/resizeaspect.md)
- [resizeAspectFill](avfoundation/avlayervideogravity/resizeaspectfill.md)

### Initializers

- [init(rawValue:)](avfoundation/avlayervideogravity/init(rawvalue:).md)

## Relationships

### Conforms To

- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Configuring the presentation

- [videoRect](avfoundation/avplayerlayer/videorect.md)
- [videoGravity](avfoundation/avplayerlayer/videogravity.md)
