<!--
{
  "availability" : [
    "tvOS: 13.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "TVServices",
  "identifier" : "/documentation/TVServices/TVTopShelfSectionedContent",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "TV Services"
    ],
    "preciseIdentifier" : "c:objc(cs)TVTopShelfSectionedContent"
  },
  "title" : "TVTopShelfSectionedContent"
}
-->

# TVTopShelfSectionedContent

The set of items you want to present using a section-based interface in the top shelf.

```
class TVTopShelfSectionedContent
```

## Overview

Create a [`TVTopShelfSectionedContent`](/documentation/TVServices/TVTopShelfSectionedContent) object when you want to display your top shelf content using a sectioned interface. A sectioned interface displays a single labled row of items. Items are organized by section. As the row scrolls horizontally through the items, the system updates the label above the items to indicate the current section. You specify the title of each section and its items using [`TVTopShelfItemCollection`](/documentation/TVServices/TVTopShelfItemCollection) objects.

For more information about how to configure images for a sectioned interface, see [Human Interface Guidelines](https://developer.apple.com/design/human-interface-guidelines/tvos/icons-and-images/top-shelf-images/).

## Topics

### Creating a Sectioned Content Object

[`init(sections: [TVTopShelfItemCollection<TVTopShelfSectionedItem>])`](/documentation/TVServices/TVTopShelfSectionedContent/init(sections:))

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

### Getting the Sections

[`var sections: [TVTopShelfItemCollection<TVTopShelfSectionedItem>]`](/documentation/TVServices/TVTopShelfSectionedContent/sections)

The sections to display in the interface.

### Getting the Image Size Information

[`class func imageSize(for: TVTopShelfSectionedItem.ImageShape) -> CGSize`](/documentation/TVServices/TVTopShelfSectionedContent/imageSize(for:))

Returns the dimensions to use for images of the specified shape.

[`enum ImageShape`](/documentation/TVServices/TVTopShelfSectionedItem/ImageShape-swift.enum)

Constants indicating the aspect ratio of an image.

## Relationships

### Conforms To

[`Hashable`](/documentation/Swift/Hashable)

[`TVTopShelfContent`](/documentation/TVServices/TVTopShelfContent)

[`CVarArg`](/documentation/Swift/CVarArg)

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

[`Equatable`](/documentation/Swift/Equatable)

[`CustomDebugStringConvertible`](/documentation/Swift/CustomDebugStringConvertible)

### Inherits From

[`NSObject-swift.class`](/documentation/ObjectiveC/NSObject-swift.class)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)