---
title: "removeLayoutGuide(_:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/uiview/removelayoutguide(_:)"
---

# removeLayoutGuide(_:)

Removes the specified layout guide from the view.

## Declaration

```swift
func removeLayoutGuide(_ layoutGuide: UILayoutGuide)
```

## Parameters

- `layoutGuide`: The layout guide to be removed.

## Discussion

Discussion This method removes the layout guide from the view’s layoutGuides array and sets the guide’s owningView property to nil. It also removes any constraints to the layout guide. Layout guides cannot participate in Auto Layout constraints unless they are added to a view in the view hierarchy.

## See Also

### Working with layout guides

- [addLayoutGuide(_:)](uikit/uiview/addlayoutguide(_:).md)
- [layoutGuides](uikit/uiview/layoutguides.md)
- [layoutMarginsGuide](uikit/uiview/layoutmarginsguide.md)
- [readableContentGuide](uikit/uiview/readablecontentguide.md)
