<!--
{
  "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/UIView/removeLayoutGuide(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UIView(im)removeLayoutGuide:"
  },
  "title" : "removeLayoutGuide(_:)"
}
-->

# removeLayoutGuide(_:)

Removes the specified layout guide from the view.

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

## Parameters

`layoutGuide`

The layout guide to be removed.

## Discussion

This method removes the layout guide from the view’s [`layoutGuides`](/documentation/UIKit/UIView/layoutGuides) array and sets the guide’s [`owningView`](/documentation/UIKit/UILayoutGuide/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.

---

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)