Generic Class

TVTopShelfItemCollection

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

Declaration

class TVTopShelfItemCollection<Item> : TVTopShelfObject where Item : TVTopShelfItem

Overview

Use a TVTopShelfItemCollection object to organize related groups of items in a sectioned interface. The system presents the items in your collection together, displaying the title of the collection above those items. For example, you might create different collections for new movies, the user's favorites, and recently watched movies.

Topics

Creating an Item Collection

init(items: [Item])

Creates an item collection object from the specified set of top shelf items.

Getting the Items

var items: [Item]

The items in the collection.

Relationships

Inherits From

Conforms To

See Also

Sectioned and Inset Content

class TVTopShelfSectionedItem

An item to display in a section-based interface.

class TVTopShelfSectionedContent

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

class TVTopShelfInsetContent

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