---
title: "CTFrameGetFrameAttributes(_:)"
framework: coretext
role: symbol
role_heading: Function
path: "coretext/ctframegetframeattributes(_:)"
---

# CTFrameGetFrameAttributes(_:)

Returns the frame attributes used to create the frame.

## Declaration

```swift
func CTFrameGetFrameAttributes(_ frame: CTFrame) -> CFDictionary?
```

## Parameters

- `frame`: The frame whose attributes are returned.

## Return Value

Return Value A reference to a CFDictionary object containing the frame attributes that were used to create the frame, or, if the frame was created without any frame attributes, NULL.

## Discussion

Discussion You can create a frame with an attributes dictionary to control various aspects of the framing process. These attributes are different from the ones used to create an attributed string.

## See Also

### Getting Frame Data

- [CTFrameGetStringRange(_:)](coretext/ctframegetstringrange(_:).md)
- [CTFrameGetVisibleStringRange(_:)](coretext/ctframegetvisiblestringrange(_:).md)
- [CTFrameGetPath(_:)](coretext/ctframegetpath(_:).md)
