Contents

removeLayoutGuide(_:)

Removes the provided layout guide from the view.

Declaration

func removeLayoutGuide(_ guide: NSLayoutGuide)

Parameters

  • guide:

    The layout guide to be removed.

Discussion

This method removes the provided layout guide from the view’s layoutGuides array. It also sets the guide’s owningView property to nil. Finally, it removes any constraints to the layout guide.

Layout guides cannot participate in Auto Layout constraints unless they are added by a view in the view hierarchy.

See Also

Managing Layout Guides