Contents

imageSize(for:)

Returns the preferred image size for the specified response object.

Declaration

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

Parameters

  • response:

    The response object that uses the image.

Return Value

The response object’s preferred image size.

Discussion

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