---
title: "setVideoGravity(_:)"
framework: watchkit
role: symbol
role_heading: Instance Method
path: "watchkit/wkinterfacemovie/setvideogravity(_:)"
---

# setVideoGravity(_:)

Sets the resizing behavior for the movie content.

## Declaration

```swift
func setVideoGravity(_ videoGravity: WKVideoGravity)
```

## Parameters

- `videoGravity`: The resizing option for the movie. For a list of possible values, see the doc://com.apple.watchkit/documentation/WatchKit/WKVideoGravity type.

## See Also

### Setting the Movie Attributes

- [setMovieURL(_:)](watchkit/wkinterfacemovie/setmovieurl(_:).md)
- [setPosterImage(_:)](watchkit/wkinterfacemovie/setposterimage(_:).md)
- [setLoops(_:)](watchkit/wkinterfacemovie/setloops(_:).md)
