layoutMarginsGuide
A layout guide that provides the recommended amount of padding for content inside of a view.
Declaration
var layoutMarginsGuide: NSLayoutGuide { get }Discussion
To ensure you pad your view’s content by the correct amount, constrain against the anchors of the layout margins guide on all sides. The system automatically updates the guide when a view becomes the content view.
For views that aren’t the content view, the layout margins guide is equivalent to the system’s standard spacing from the safe area.