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

# TVTopShelfNamedAttribute

An object you use to display additional information.

```
class TVTopShelfNamedAttribute
```

## Overview

Use [`TVTopShelfNamedAttribute`](/documentation/TVServices/TVTopShelfNamedAttribute) objects to specify additional information about your content, such as the names of cast or crew members associated with a movie or show. Each named attribute contains the type of information you want to include (the name) and a list of strings (the values) to display for that attribute. For example, you might set the name property to “Starring” and set the value strings to the names of the leading actors.

Create named attributes and assign them to the [`namedAttributes`](/documentation/TVServices/TVTopShelfCarouselItem/namedAttributes) property of a [`TVTopShelfCarouselItem`](/documentation/TVServices/TVTopShelfCarouselItem) object.

## Topics

### Creating a Named Attribute

[`init(name: String, values: [String])`](/documentation/TVServices/TVTopShelfNamedAttribute/init(name:values:))

Creates a new named attribute object with the specified values.

### Getting the Name and Value

[`var name: String`](/documentation/TVServices/TVTopShelfNamedAttribute/name)

The localized name of the attribute.

[`var values: [String]`](/documentation/TVServices/TVTopShelfNamedAttribute/values)

The array of values for the attribute.

## Relationships

### Conforms To

[`CVarArg`](/documentation/Swift/CVarArg)

[`Equatable`](/documentation/Swift/Equatable)

[`CustomDebugStringConvertible`](/documentation/Swift/CustomDebugStringConvertible)

[`Hashable`](/documentation/Swift/Hashable)

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

### Inherits From

[`NSObject-swift.class`](/documentation/ObjectiveC/NSObject-swift.class)

---

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)