---
title: AVVideoScalingModeFit
framework: avfoundation
role: symbol
role_heading: Global Variable
path: avfoundation/avvideoscalingmodefit
---

# AVVideoScalingModeFit

The string identifier for scaling a video to fit the surrounding view’s dimensions.

## Declaration

```swift
let AVVideoScalingModeFit: String
```

## Discussion

Discussion This mode crops the video to remove the edge processing region, preserving the aspect ratio of the cropped source by reducing the specified width or height, if necessary. It doesn’t scale a small source up to larger dimensions.

## See Also

### Scaling mode

- [AVVideoScalingModeKey](avfoundation/avvideoscalingmodekey.md)
- [AVVideoScalingModeResize](avfoundation/avvideoscalingmoderesize.md)
- [AVVideoScalingModeResizeAspect](avfoundation/avvideoscalingmoderesizeaspect.md)
- [AVVideoScalingModeResizeAspectFill](avfoundation/avvideoscalingmoderesizeaspectfill.md)
