---
title: TVTopShelfNamedAttribute
framework: tvservices
role: symbol
role_heading: Class
path: tvservices/tvtopshelfnamedattribute
---

# TVTopShelfNamedAttribute

An object you use to display additional information.

## Declaration

```swift
class TVTopShelfNamedAttribute
```

## Overview

Overview Use 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 property of a TVTopShelfCarouselItem object.

## Topics

### Creating a Named Attribute

- [init(name:values:)](tvservices/tvtopshelfnamedattribute/init(name:values:).md)

### Getting the Name and Value

- [name](tvservices/tvtopshelfnamedattribute/name.md)
- [values](tvservices/tvtopshelfnamedattribute/values.md)

## Relationships

### Inherits From

- [NSObject](objectivec/nsobject-swift.class.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)

## See Also

### Adding Custom Attributes

- [namedAttributes](tvservices/tvtopshelfcarouselitem/namedattributes.md)
