---
title: MPMovieScalingMode.aspectFit
framework: mediaplayer
role: symbol
role_heading: Case
path: mediaplayer/mpmoviescalingmode/aspectfit
---

# MPMovieScalingMode.aspectFit

Scale the movie uniformly until one dimension fits the visible bounds of the view exactly. In the other dimension, the region between the edge of the movie and the edge of the view is filled with a black bar. The aspect ratio of the movie is preserved.

## Declaration

```swift
case aspectFit
```

## See Also

### Constants

- [MPMovieScalingMode.none](mediaplayer/mpmoviescalingmode/none.md)
- [MPMovieScalingMode.aspectFill](mediaplayer/mpmoviescalingmode/aspectfill.md)
- [MPMovieScalingMode.fill](mediaplayer/mpmoviescalingmode/fill.md)
