<!--
{
  "documentType" : "article",
  "framework" : "TVML",
  "identifier" : "/documentation/TVML/aspectfill",
  "metadataVersion" : "0.1.0",
  "role" : "article",
  "title" : "aspectFill"
}
-->

# aspectFill

Stretches an image to fill the containing bounding box.

## Overview

Use the `aspectFill` attribute to display an image that fills the bounding box while
keeping the aspect of image intact.

### Values for aspectFill

- boolean: The image fills the entire screen when set to `true`.

### Elements that use aspectFill

- [img](/documentation/TVML/img) inside of a `oneupTemplate` element only

---

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)