Instance Method

remove​Layout​Guide(_:​)

Removes the specified layout guide from the view.

Declaration

func removeLayoutGuide(_ layoutGuide: UILayoutGuide)

Parameters

layout​Guide

The layout guide to be removed.

Discussion

This method removes the layout guide from the view’s layout​Guides array and sets the guide’s owning​View 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.