<!--
{
  "availability" : [
    "tvOS: 13.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "TVServices",
  "identifier" : "/documentation/TVServices/TVTopShelfItem/imageURL(for:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "TV Services"
    ],
    "preciseIdentifier" : "c:objc(cs)TVTopShelfItem(im)imageURLForTraits:"
  },
  "title" : "imageURL(for:)"
}
-->

# imageURL(for:)

Returns an image associated with the current item.

```
func imageURL(for traits: TVTopShelfItem.ImageTraits) -> URL?
```

## Parameters

`traits`

The traits that describe the image.

## Return Value

The image associated with the specified traits; otherwise, `nil` if you did not previously assign an image with the specified traits.

---

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)