Returns the preferred size for an image to be used with the specified response object.
- iOS 10.0+
- Mac Catalyst 13.0+
The response object that uses the image.
The image size preferred by the response object.
When a response object includes an image, use this method to get the preferred size of that image. You can use that information to create or load an image of the appropriate size.