Instance Property

edgesForExtendedLayout

The extended edges to use for the layout.

Declaration

var edgesForExtendedLayout: UIRectEdge { get set }

Discussion

This property is applied only to view controllers that are embedded in a container such as UINavigationController. The window’s root view controller does not react to this property. The default value of this property is all.

See Also

Configuring the View’s Layout Behavior

var safeAreaLayoutGuide: UILayoutGuide

The layout guide describing the unobscured portion of the screen.

Deprecated
var additionalSafeAreaInsets: UIEdgeInsets

Custom insets that you specify to modify the view controller's safe area.

Beta
var systemMinimumLayoutMargins: NSDirectionalEdgeInsets

The minimum layout margins defined by the system.

Beta
var viewRespectsSystemMinimumLayoutMargins: Bool

A Boolean value indicating whether the view controller's view uses the system-defined minimum layout margins.

Beta
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 viewLayoutMarginsDidChange()

Called to notify the view controller that the layout margins of its view changed.

Beta
func viewSafeAreaInsetsDidChange()

Called to notify the view controller that its safe area insets changed.

Beta
func updateViewConstraints()

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