---
title: AVVideoScalingModeResizeAspectFill
framework: avfoundation
role: symbol
role_heading: Global Variable
path: avfoundation/avvideoscalingmoderesizeaspectfill
---

# AVVideoScalingModeResizeAspectFill

The string identifier for resizing a video to fit the surrounding view’s longer dimension while preserving aspect ratio.

## Declaration

```swift
let AVVideoScalingModeResizeAspectFill: String
```

## Discussion

Discussion This mode crops the video to fit the destination dimensions, preserving the aspect ratio of the source video.

## See Also

### Scaling mode

- [AVVideoScalingModeFit](avfoundation/avvideoscalingmodefit.md)
- [AVVideoScalingModeKey](avfoundation/avvideoscalingmodekey.md)
- [AVVideoScalingModeResize](avfoundation/avvideoscalingmoderesize.md)
- [AVVideoScalingModeResizeAspect](avfoundation/avvideoscalingmoderesizeaspect.md)
