---
title: attributeKeys
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/nsclassdescription/attributekeys
---

# attributeKeys

Overridden by subclasses to return the names of attributes of instances of the described class.

## Declaration

```swift
var attributeKeys: [String] { get }
```

## Return Value

Return Value An array of NSString objects containing the names of attributes of instances of the described class.

## Discussion

Discussion For example, a class description that describes Movie objects could return the attribute keys title, dateReleased, and rating. If you have an instance of the class the receiver describes, you can use the NSObject instance method attributeKeys instead.

## See Also

### Related Documentation

- [toManyRelationshipKeys](foundation/nsclassdescription/tomanyrelationshipkeys.md)
- [toOneRelationshipKeys](foundation/nsclassdescription/toonerelationshipkeys.md)
