A Boolean value indicating whether the current view also respects the margins of its superview.
- iOS 8.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
When the value of this property is
YES, the superview’s margins are also considered when laying out content. This margin affects layouts where the distance between the edge of a view and its superview is smaller than the corresponding margin. For example, you might have a content view whose frame precisely matches the bounds of its superview. When any of the superview’s margins is inside the area represented by the content view and its own margins, UIKit adjusts the content view’s layout to respect the superview’s margins. The amount of the adjustment is the smallest amount needed to ensure that content is also inside the superview’s margins.
The default value of this property is