Instance Property


The edges that you extend for your view controller.


var edgesForExtendedLayout: UIRectEdge { get set }


Instead of this property, use the safe area of your view to determine which parts of your interface are occluded by other content. For more information, see the safeAreaLayoutGuide and safeAreaInsets properties of UIView.

In iOS 10 and earlier, use this property to report which edges of your view controller extend underneath navigation bars or other system-provided views. The default value of this property is all, and it is recommended that you do not change that value.

If you remove an edge value from this property, the system does not lay out your content underneath other bars on that same edge. In addition, the system provides a default background so that translucent bars have an appropriate appearance. The window’s root view controller does not react to this property.

See Also

Configuring the View’s Layout Behavior

struct UIRectEdge

Constants that specify the edges of a rectangle.

var extendedLayoutIncludesOpaqueBars: Bool

A Boolean value indicating whether or not the extended layout includes opaque bars.

func viewWillLayoutSubviews()

Called to notify the view controller that its view is about to layout its subviews.

func viewDidLayoutSubviews()

Called to notify the view controller that its view has just laid out its subviews.

func updateViewConstraints()

Called when the view controller'€™s view needs to update its constraints.