---
title: preparedContentRect
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nsview/preparedcontentrect
---

# preparedContentRect

The portion of the view that has been rendered and is available for responsive scrolling.

## Declaration

```swift
var preparedContentRect: NSRect { get set }
```

## Discussion

Discussion During responsive scrolling, this property specifies the portion of the view that has been rendered and is ready to scroll. This rectangle always includes the visible portion of the view and may also include nonvisible portions that have been rendered and cached. Changing the value of this property alerts AppKit that it might need to generate new overdraw content. For example, setting the value to the current visible rectangle forces AppKit to throw away any cached overdraw content and regenerate it during the next idle period. Never assign a rectangle that is smaller than the visible rectangle.

## See Also

### Scrolling the View

- [prepareContent(in:)](appkit/nsview/preparecontent(in:).md)
- [scroll(_:)](appkit/nsview/scroll(_:).md)
- [scrollToVisible(_:)](appkit/nsview/scrolltovisible(_:).md)
- [autoscroll(with:)](appkit/nsview/autoscroll(with:).md)
- [adjustScroll(_:)](appkit/nsview/adjustscroll(_:).md)
- [enclosingScrollView](appkit/nsview/enclosingscrollview.md)
- [scroll(_:to:)](appkit/nsview/scroll(_:to:).md)
- [reflectScrolledClipView(_:)](appkit/nsview/reflectscrolledclipview(_:).md)
- [isCompatibleWithResponsiveScrolling](appkit/nsview/iscompatiblewithresponsivescrolling.md)
