---
title: "init(style:items:)"
framework: tvservices
role: symbol
role_heading: Initializer
path: "tvservices/tvtopshelfcarouselcontent/init(style:items:)"
---

# init(style:items:)

Creates a content object for displaying items in a carousel style in the top shelf interface.

## Declaration

```swift
init(style: TVTopShelfCarouselContent.Style, items: [TVTopShelfCarouselItem])
```

## Parameters

- `style`: The appearance to use for individual items. For a list of possible values, see doc://com.apple.tvservices/documentation/TVServices/TVTopShelfCarouselContent/Style-swift.enum.
- `items`: The items to display in the Top Shelf interface. All of the items in the array must have unique identifiers.

## Return Value

Return Value A new carousel content object containing the specified items.
