---
title: "init(sectionProvider:)"
framework: uikit
role: symbol
role_heading: Initializer
path: "uikit/uicollectionviewcompositionallayout/init(sectionprovider:)"
---

# init(sectionProvider:)

Creates a compositional layout object with a section provider to supply the layout’s sections.

## Declaration

```swift
init(sectionProvider: @escaping UICollectionViewCompositionalLayoutSectionProvider)
```

## See Also

### Observing data in collection view layouts

- [UICollectionViewCompositionalLayoutSectionProvider](uikit/uicollectionviewcompositionallayoutsectionprovider.md)
- [init(sectionProvider:configuration:)](uikit/uicollectionviewcompositionallayout/init(sectionprovider:configuration:).md)
