---
title: unobscuredContentRect
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uitextinput/unobscuredcontentrect
---

# unobscuredContentRect

The visible content region, excluding parts covered by view-specific UI.

## Declaration

```swift
optional var unobscuredContentRect: CGRect { get }
```

## Return Value

Return Value The visible content rectangle, or CGRectNull if there is no specific constraint.

## Discussion

Discussion Account for scroll position, insets, and any custom UI elements (toolbars, accessories, etc.) that obscure content. The system automatically accounts for keyboard obscuring when editing. The rectangle is in the textInputView coordinate space.
