# How do I get the sections header from NSfetchedResultController

**URL:** <https://forums.kodeco.com/t/how-do-i-get-the-sections-header-from-nsfetchedresultcontroller/155833>\
**Category:** Swift\
**Created:** [November 3, 2021, 2:09pm UTC](https://forums.kodeco.com/t/how-do-i-get-the-sections-header-from-nsfetchedresultcontroller/155833 "2021-11-03T14:09:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![wurllink](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/wurllink/32/81494_2.png) [@wurllink](https://forums.kodeco.com/u/wurllink)\
**Post date:** [November 3, 2021, 2:09pm UTC](https://forums.kodeco.com/t/how-do-i-get-the-sections-header-from-nsfetchedresultcontroller/155833/1 "2021-11-03T14:09:45Z")

</div>

I am using the a diffable datasource to populate the cells in a collection view while getting the data from NSFetchedResultController. However, I am struggling to figure out how to properly create a snapshot with the according section headers.

---

<div class="post-metadata">

**Author:** ![system](https://s3.amazonaws.com/cdn.raywenderlich.com/community/forum-assets/noun-game-ghost-878668.png) [@system](https://forums.kodeco.com/u/system)\
**Post date:** [April 19, 2022, 6:09am UTC](https://forums.kodeco.com/t/how-do-i-get-the-sections-header-from-nsfetchedresultcontroller/155833/2 "2022-04-19T06:09:51Z")

</div>

Closed on April 19, 2022, 6:09am UTC

This topic was automatically closed after 166 days. New replies are no longer allowed.
