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

# minimumInteritemSpacing

The minimum spacing (in points) to use between items in the same row or column.

```
var minimumInteritemSpacing: CGFloat { get set }
```

## Discussion

If the delegate does not implement the [`collectionView(_:layout:minimumInteritemSpacingForSectionAt:)`](/documentation/AppKit/NSCollectionViewDelegateFlowLayout/collectionView(_:layout:minimumInteritemSpacingForSectionAt:)) method, the flow layout object uses the value of this property to set the spacing between items in the same line.

For a vertically scrolling layout, the value represents the minimum spacing between items in the same row. For a horizontally scrolling layout, the value represents the minimum spacing between items in the same column. The layout object uses this spacing only to compute how many items can fit in a single row or column. The actual spacing may be increased after the number of items has been determined, as illustrated in [Figure 1](/documentation/appkit/nscollectionviewflowlayout/1402872-minimuminteritemspacing#1965632).

![](images/com.apple.appkit/media-1965632@2x.png)

The default value of this property is `10.0`.

---

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)