Contents

UIEdgeInsets

The inset distances for views.

Declaration

struct UIEdgeInsets

Overview

Edge inset values are applied to a rectangle to shrink or expand the area represented by that rectangle. Typically, edge insets are used during view layout to modify the view’s frame. Positive values cause the frame to be inset (or shrunk) by the specified amount. Negative values cause the frame to be outset (or expanded) by the specified amount.

See also init(top:left:bottom:right:) and zero.

Topics

Creating edge insets

Getting the edge values

Managing edge insets

Converting to and from strings

Getting the empty edge insets

Comparing edge insets

See Also

Related types