---
title: attributes()
framework: quartz
role: symbol
role_heading: Type Method
path: quartz/qcplugin/attributes()
---

# attributes()

Returns a dictionary that contains strings for the user interface that describe the custom patch.

## Declaration

```swift
class func attributes() -> [AnyHashable : Any]!
```

## Return Value

Return Value The dictionary can contain one or more of these keys along with the appropriate string: QCPlugInAttributeNameKey and QCPlugInAttributeDescriptionKey.

## Discussion

Discussion It’s recommended that you implement this method to enhance the experience of those who use your custom patch. The attribute name string that you provide is displayed in the Quartz Composer editor window when the custom patch name is selected in the Patch Creator (see figure). The attribute description key is displayed in the Information pane of the inspector for the custom patch.

## See Also

### Defining Patch and Property Port Attributes

- [attributesForPropertyPort(withKey:)](quartz/qcplugin/attributesforpropertyport(withkey:).md)
