Instance Property


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


var viewRespectsSystemMinimumLayoutMargins: Bool { get set }


When the value of this property is true, the root view's layout margins are guaranteed to be no smaller than the values in the systemMinimumLayoutMargins property. The default value of this property is true.

Changing this property to false causes the view to obtain its margins solely from its directionalLayoutMargins property. Setting the margins in that property to 0 allows you to eliminate the view's margins altogether.

See Also

Managing the View's Margins

Positioning Content Within Layout Margins

Position views so that they are not crowded by other content.

var systemMinimumLayoutMargins: NSDirectionalEdgeInsets

The minimum layout margins for the view controller's root view.

func viewLayoutMarginsDidChange()

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