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

# imageSize(for:)

Returns the preferred image size for the specified response object.

## Declaration

```swift
class func imageSize(for response: INIntentResponse) -> CGSize
```

## Parameters

- `response`: The response object that uses the image.

## Return Value

Return Value The response object’s preferred image size.

## Discussion

Discussion If a response object includes an image, use this method to get its preferred size and then create an image of that size.
