---
title: "init(sections:)"
framework: tvservices
role: symbol
role_heading: Initializer
path: "tvservices/tvtopshelfsectionedcontent/init(sections:)"
---

# init(sections:)

Creates a sectioned content object and populates it with the specified sections.

## Declaration

```swift
init(sections: [TVTopShelfItemCollection<TVTopShelfSectionedItem>])
```

## Parameters

- `sections`: An array of doc://com.apple.tvservices/documentation/TVServices/TVTopShelfItemCollection objects, representing the sections of your interface.

## Return Value

Return Value A new sectioned content object containing the specified sections.
