Removes the provided layout guide from the view.
SDK
- macOS 10.11+
Framework
- App
Kit
Declaration
func removeLayoutGuide(_ guide: NSLayout Guide)
Parameters
guide
The layout guide to be removed.
Discussion
This method removes the provided layout guide from the view’s layout
array. It also sets the guide’s owning
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.