unobscuredContentRect
The visible content region, excluding parts covered by view-specific UI.
Declaration
optional var unobscuredContentRect: CGRect { get }Return Value
The visible content rectangle, or CGRectNull if there is no specific constraint.
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.