---
title: owningView
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uilayoutguide/owningview
---

# owningView

The view that owns this layout guide.

## Declaration

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

## Discussion

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(_:) method. Do not modify this property directly. Instead, use the view’s addLayoutGuide(_:) and removeLayoutGuide(_:) methods, which update this property as necessary.

## See Also

### Working with layout guides

- [identifier](uikit/uilayoutguide/identifier.md)
- [layoutFrame](uikit/uilayoutguide/layoutframe.md)
