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

# owningView

The view that owns this layout guide.

```
weak var owningView: UIView? { get set }
```

## Discussion

By default, this property is `nil`. To participate in Auto Layout, the layout guide must be added to a view by calling its [`addLayoutGuide(_:)`](/documentation/UIKit/UIView/addLayoutGuide(_:)) method. Do not modify this property directly. Instead, use the view’s [`addLayoutGuide(_:)`](/documentation/UIKit/UIView/addLayoutGuide(_:)) and [`removeLayoutGuide(_:)`](/documentation/UIKit/UIView/removeLayoutGuide(_:)) methods, which update this property as necessary.

---

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)