Instance Method


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


func viewSafeAreaInsetsDidChange()


Use this method to update your interface to accommodate the new safe area. UIKit updates the safe area in response to size changes to system bars or when you modify the additional safe area insets of your view controller. UIKit also calls this method immediately before your view appears onscreen.

See Also

Extending the View's Safe Area

Positioning Content Relative to the Safe Area

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

var additionalSafeAreaInsets: UIEdgeInsets

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