---
title: "imageSize(for:)"
framework: tvservices
role: symbol
role_heading: Type Method
path: "tvservices/tvtopshelfsectionedcontent/imagesize(for:)"
---

# imageSize(for:)

Returns the dimensions to use for images of the specified shape.

## Declaration

```swift
class func imageSize(for shape: TVTopShelfSectionedItem.ImageShape) -> CGSize
```

## Parameters

- `shape`: The image shape whose dimensions you want.

## Return Value

Return Value The recommended size of the image, in points.

## See Also

### Getting the Image Size Information

- [TVTopShelfSectionedItem.ImageShape](tvservices/tvtopshelfsectioneditem/imageshape-swift.enum.md)
