safeAreaInsets
The distances from the edges of your view that define the safe area.
Declaration
var safeAreaInsets: NSEdgeInsets { get }Discussion
A view’s safe area reflects the portion of the view not covered by the window’s title bar or any ancestor views. This property reflects the superview’s safe area plus any additional insets you specify in the additionalSafeAreaInsets property. If the view is not currently installed in a view hierarchy, or is not yet visible onscreen, the insets in this property are 0.