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

# init(name:values:)

Creates a new named attribute object with the specified values.

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

## Parameters

`name`

The localized name of the attribute.

`values`

An array of strings containing the attribute values.

## Return Value

A new named attribute object.

## Discussion

---

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)