---
title: ForEachSectionCollection
framework: swiftui
role: symbol
role_heading: Structure
path: swiftui/foreachsectioncollection
---

# ForEachSectionCollection

A collection which allows a view to be treated as a collection of its sections in a for each loop.

## Declaration

```swift
struct ForEachSectionCollection<Content> where Content : View
```

## Overview

Overview You don’t use this type directly. Instead SwiftUI creates this type on your behalf.

## Relationships

### Conforms To

- [BidirectionalCollection](swift/bidirectionalcollection.md)
- [Collection](swift/collection.md)
- [RandomAccessCollection](swift/randomaccesscollection.md)
- [Sequence](swift/sequence.md)

## See Also

### Iterating over dynamic data

- [ForEach](swiftui/foreach.md)
- [ForEachSubviewCollection](swiftui/foreachsubviewcollection.md)
- [DynamicViewContent](swiftui/dynamicviewcontent.md)
