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

# init(items:)

Creates an inset content object and populates it with the specified set of items.

## Declaration

```swift
init(items: [TVTopShelfItem])
```

## Parameters

- `items`: An array of doc://com.apple.tvservices/documentation/TVServices/TVTopShelfItem objects representing the content that you want to display in the top shelf. This method stores a copy of the array.

## Return Value

Return Value A new inset content object containing the specified set of items.
