---
title: accessibilityFrame()
framework: appkit
role: symbol
role_heading: Instance Method
path: appkit/nsaccessibilityelementprotocol/accessibilityframe()
---

# accessibilityFrame()

Returns the accessibility element’s frame in screen coordinates.

## Declaration

```swift
func accessibilityFrame() -> NSRect
```

## Return Value

Return Value The element’s frame in screen coordinates.

## Discussion

Discussion This method is the getter for the NSAccessibilityProtocol protocol’s accessibilityFrame property. This method is called whenever accessibility clients request the size or position attributes. note: If you are working with an NSAccessibilityElement subclass, use the accessibilityFrameInParentSpace property instead. The accessibilityFrameInParentSpace property ensures that accessibility element objects move when their parents move.

## See Also

### Supporting Accessibility

- [accessibilityIdentifier()](appkit/nsaccessibilityelementprotocol/accessibilityidentifier().md)
- [accessibilityParent()](appkit/nsaccessibilityelementprotocol/accessibilityparent().md)
- [isAccessibilityFocused()](appkit/nsaccessibilityelementprotocol/isaccessibilityfocused().md)
