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

# titleRect(forContentRect:)

Returns the rectangle in which the receiver draws its title.

## Declaration

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

## Parameters

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

## Return Value

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

## See Also

### Dimensions

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