<!--
{
  "availability" : [
    "iOS: 10.0.0 -",
    "iPadOS: 10.0.0 -",
    "macCatalyst: 13.1.0 -",
    "tvOS: 10.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIAccessibilityElement/accessibilityFrameInContainerSpace",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UIAccessibilityElement(py)accessibilityFrameInContainerSpace"
  },
  "title" : "accessibilityFrameInContainerSpace"
}
-->

# accessibilityFrameInContainerSpace

The frame of the accessibility element, in the coordinate space of its container view.

```
var accessibilityFrameInContainerSpace: CGRect { get set }
```

## Discussion

The default value of this property is <doc://com.apple.documentation/documentation/CoreGraphics/CGRectNull>. Use this property to set the frame rectangle of an element whose frame rectangle could be affected by its container view. For example, use this property to set the frame rectangle for an element in a scroll view’s content view. Changing the value of this property automatically adjusts the rectangle in the [`accessibilityFrame`](/documentation/UIKit/UIAccessibilityElement/accessibilityFrame) property.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)