Instance Method


Adds the provided layout guide to the view.


func addLayoutGuide(_ guide: NSLayoutGuide)



The layout guide to be added.


This method adds the provided layout guide to the end of the view’s layoutGuides array. It also assigns the view to the guide’s owningView property. Each guide can have only one owning view.

After the guide has been added to a view, it can participate in Auto Layout constraints with that view’s hierarchy.

See Also

Working with Layout Guides

var layoutGuides: [NSLayoutGuide]

The array of layout guide objects owned by this view.

func removeLayoutGuide(NSLayoutGuide)

Removes the provided layout guide from the view.