---
title: attributes
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nsgraphicscontext/attributes
---

# attributes

The attributes used to create this instance.

## Declaration

```swift
var attributes: [NSGraphicsContext.AttributeKey : Any]? { get }
```

## Discussion

Discussion Screen-based graphics contexts do not store attributes, even if you create them using init(attributes:).

## See Also

### Getting Information About the Context

- [NSGraphicsContext.AttributeKey](appkit/nsgraphicscontext/attributekey.md)
- [NSGraphicsContext.RepresentationFormatName](appkit/nsgraphicscontext/representationformatname.md)
- [isFlipped](appkit/nsgraphicscontext/isflipped.md)
