---
title: attributes()
framework: quartz
role: symbol
role_heading: Instance Method
path: quartz/qccompositionrenderer/attributes()
---

# attributes()

Returns the attributes of the composition associated with the renderer.

## Declaration

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

## Return Value

Return Value A dictionary that contains the attributes that describe the composition, including the input and output ports of the root patch.

## Discussion

Discussion The dictionary can define any of the attributes that are specified by the composition attribute keys. See QCCompositionAttributeNameKey, QCCompositionAttributeDescriptionKey, and QCCompositionAttributeCopyrightKey. The dictionary can also contain dictionaries that correspond to the keys that identify the input and output ports of the root patch of the composition. See QCPortAttributeTypeKey, QCPortAttributeNameKey, QCPortAttributeMinimumValueKey, QCPortAttributeMaximumValueKey, and QCPortAttributeMenuItemsKey.

## See Also

### Related Documentation

- [inputKeys()](quartz/qccompositionrenderer/inputkeys().md)
- [outputKeys()](quartz/qccompositionrenderer/outputkeys().md)
