---
title: sectionInsetReference
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uicollectionviewflowlayout/sectioninsetreference-swift.property
---

# sectionInsetReference

The boundary that section insets are defined in relation to.

## Declaration

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

## Discussion

Discussion The default value of this property is UICollectionViewFlowLayout.SectionInsetReference.fromContentInset. The minimum value of this property is always the collection view’s contentInset. For example, if the value of this property is UICollectionViewFlowLayout.SectionInsetReference.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.

## See Also

### Configuring item spacing

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