<!--
{
  "availability" : [
    "iOS: 6.0.0 -",
    "iPadOS: 6.0.0 -",
    "macCatalyst: 13.1.0 -",
    "tvOS: -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UICollectionViewFlowLayout/minimumLineSpacing",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UICollectionViewFlowLayout(py)minimumLineSpacing"
  },
  "title" : "minimumLineSpacing"
}
-->

# minimumLineSpacing

The minimum spacing to use between lines of items in the grid.

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

## Discussion

If the delegate object does not implement the [`collectionView(_:layout:minimumLineSpacingForSectionAt:)`](/documentation/UIKit/UICollectionViewDelegateFlowLayout/collectionView(_:layout:minimumLineSpacingForSectionAt:)) method, the flow layout uses the value in this property to set the spacing between lines in a section.

For a vertically scrolling grid, this value represents the minimum spacing between successive rows. For a horizontally scrolling grid, this value represents the minimum spacing between successive columns. This spacing is not applied to the space between the header and the first line or between the last line and the footer.

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)