---
title: minimumInteritemSpacing
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uicollectionviewflowlayout/minimuminteritemspacing
---

# minimumInteritemSpacing

The minimum spacing to use between items in the same row.

## Declaration

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

## Discussion

Discussion If the delegate object does not implement the collectionView(_:layout:minimumInteritemSpacingForSectionAt:) method, the flow layout uses the value in this property to set the spacing between items in the same line. For a vertically scrolling grid, this value represents the minimum spacing between items in the same row. For a horizontally scrolling grid, this value represents the minimum spacing between items in the same column. This spacing is used to compute how many items can fit in a single line, but after the number of items is determined, the actual spacing may possibly be adjusted upward. The default value of this property is 10.0.

## See Also

### Configuring item spacing

- [minimumLineSpacing](uikit/uicollectionviewflowlayout/minimumlinespacing.md)
- [itemSize](uikit/uicollectionviewflowlayout/itemsize.md)
- [estimatedItemSize](uikit/uicollectionviewflowlayout/estimateditemsize.md)
- [automaticSize](uikit/uicollectionviewflowlayout/automaticsize.md)
- [sectionInset](uikit/uicollectionviewflowlayout/sectioninset.md)
- [sectionInsetReference](uikit/uicollectionviewflowlayout/sectioninsetreference-swift.property.md)
- [UICollectionViewFlowLayout.SectionInsetReference](uikit/uicollectionviewflowlayout/sectioninsetreference-swift.enum.md)
