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

# itemSize

The default size to use for items.

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

## Discussion

This property contains the default size of items. If you do not provide an estimated size or implement the [`collectionView(_:layout:sizeForItemAt:)`](/documentation/AppKit/NSCollectionViewDelegateFlowLayout/collectionView(_:layout:sizeForItemAt:)) method in your delegate, the flow layout uses this value for the size of each item. All items are set to the same size. This value applies only to items and not to supplementary views.

The default value of this property is (`50.0`, `50.0`). For more information about how item sizes are determined, see [`Understanding How the Flow Layout is Generated`](/documentation/AppKit/NSCollectionViewFlowLayout#Understanding-How-the-Flow-Layout-is-Generated).

---

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)