<!--
{
  "availability" : [
    "macOS: 10.11.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSCollectionViewLayoutInvalidationContext/contentSizeAdjustment",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSCollectionViewLayoutInvalidationContext(py)contentSizeAdjustment"
  },
  "title" : "contentSizeAdjustment"
}
-->

# contentSizeAdjustment

The delta value to add to the collection view’s content size.

```
var contentSizeAdjustment: NSSize { get set }
```

## Discussion

Use this property to update the size of the collection view’s content area, as computed by the associated layout object. The default value of this property is <doc://com.apple.documentation/documentation/Foundation/NSZeroSize>. Changing the value causes the collection view to add the specified height and width values to its content size. Thus, positive values grow the content area and negative values shrink it. You might add space around the content area to provide a visual buffer for your collection view content.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)