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

# sectionInsetReference

The boundary that section insets are defined in relation to.

```
var sectionInsetReference: UICollectionViewFlowLayout.SectionInsetReference { get set }
```

## Discussion

The default value of this property is [`UICollectionViewFlowLayout.SectionInsetReference.fromContentInset`](/documentation/UIKit/UICollectionViewFlowLayout/SectionInsetReference-swift.enum/fromContentInset).

The minimum value of this property is always the collection view’s [`contentInset`](/documentation/UIKit/UIScrollView/contentInset). For example, if the value of this property is [`UICollectionViewFlowLayout.SectionInsetReference.fromSafeArea`](/documentation/UIKit/UICollectionViewFlowLayout/SectionInsetReference-swift.enum/fromSafeArea), but the adjusted content inset is greater than the combination of the safe area and section insets, then the section’s content is aligned with the content inset instead.

---

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)