---
title: "imageRect(forContentRect:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/uibutton/imagerect(forcontentrect:)"
---

# imageRect(forContentRect:)

Returns the rectangle in which the receiver draws its image.

## Declaration

```swift
func imageRect(forContentRect contentRect: CGRect) -> CGRect
```

## Parameters

- `contentRect`: The content rectangle for the receiver.

## Return Value

Return Value The rectangle in which the receiver draws its image.

## See Also

### Dimensions

- [backgroundRect(forBounds:)](uikit/uibutton/backgroundrect(forbounds:).md)
- [contentRect(forBounds:)](uikit/uibutton/contentrect(forbounds:).md)
- [titleRect(forContentRect:)](uikit/uibutton/titlerect(forcontentrect:).md)
