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


class TVTopShelfSectionedContent : NSObject


Create a 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 objects.

For more information about how to configure images for a sectioned interface, see Human Interface Guidelines.


Creating a Sectioned Content Object

init(sections: [TVTopShelfItemCollection<TVTopShelfSectionedItem>])

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

Getting the Sections

Getting the Image Size Information

class func imageSize(for: TVTopShelfSectionedItem.ImageShape) -> CGSize

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

enum TVTopShelfSectionedItem.ImageShape

Constants indicating the aspect ratio of an image.


Inherits From

See Also

Sectioned and Inset Content

class TVTopShelfSectionedItem

An item to display in a section-based interface.

class TVTopShelfItemCollection

A group of items that you display together in a sectioned interface in the top shelf.

class TVTopShelfInsetContent

A set of items to present using an inset-style interface in the top shelf.