Adds the specified layout guide to the view.
- iOS 9.0+
- Mac Catalyst 13.0+Beta
- tvOS 9.0+
The layout guide to be added.
This method adds the specified 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.
Working with Layout Guides
The array of layout guide objects owned by this view.
This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.Learn more about using Apple's beta software