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

# init(items:)

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

## Declaration

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

## Parameters

- `items`: The array of doc://com.apple.tvservices/documentation/TVServices/TVTopShelfItem objects to put in the collection.

## Return Value

Return Value A new item collection object containing the specified items.
