<!--
{
  "availability" : [
    "watchOS: 3.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "WatchKit",
  "identifier" : "/documentation/WatchKit/WKInterfaceInlineMovie/setVideoGravity(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "WatchKit"
    ],
    "preciseIdentifier" : "c:objc(cs)WKInterfaceInlineMovie(im)setVideoGravity:"
  },
  "title" : "setVideoGravity(_:)"
}
-->

# setVideoGravity(_:)

Sets the resizing behavior for the movie content.

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

## Parameters

`videoGravity`

The resizing option for the movie. For a list of possible values, see the [`WKVideoGravity`](/documentation/WatchKit/WKVideoGravity) type. Defaults to [`WKVideoGravity.resizeAspect`](/documentation/WatchKit/WKVideoGravity/resizeAspect).

## Discussion

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)