---
title: "init(name:values:)"
framework: tvservices
role: symbol
role_heading: Initializer
path: "tvservices/tvtopshelfnamedattribute/init(name:values:)"
---

# init(name:values:)

Creates a new named attribute object with the specified values.

## Declaration

```swift
init(name: String, values: [String])
```

## Parameters

- `name`: The localized name of the attribute.
- `values`: An array of strings containing the attribute values.

## Return Value

Return Value A new named attribute object.
