---
title: SectionCollection
framework: swiftui
role: symbol
role_heading: Structure
path: swiftui/sectioncollection
---

# SectionCollection

An opaque collection representing the sections of view.

## Declaration

```swift
struct SectionCollection
```

## Overview

Overview Sections are constructed lazily, on demand, so access only as much of this collection as is necessary to create the resulting content. You can get access to a view’s SectionCollection by using the Group/init(sectionsOf:transform:) initializer. Any content of the given view which is not explicitly specified as a section is grouped with its sibling content to form implicit sections, meaning the minimum number of sections in a SectionCollection is one.

## Relationships

### Conforms To

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

## See Also

### Organizing views into sections

- [Section](swiftui/section.md)
- [SectionConfiguration](swiftui/sectionconfiguration.md)
