<!--
{
  "availability" : [
    "tvOS: 13.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "TVServices",
  "identifier" : "/documentation/TVServices/TVTopShelfCarouselContent/init(style:items:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "TV Services"
    ],
    "preciseIdentifier" : "c:objc(cs)TVTopShelfCarouselContent(im)initWithStyle:items:"
  },
  "title" : "init(style:items:)"
}
-->

# init(style:items:)

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

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

## Parameters

`style`

The appearance to use for individual items. For a list of possible values, see [`TVTopShelfCarouselContent.Style`](/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

A new carousel content object containing the specified items.

---

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)