Contents

contentInsets

The amount of space added around the content of the item to adjust its final size after its position is computed.

Declaration

var contentInsets: NSDirectionalEdgeInsets { get set }

Discussion

You can use this property within a grid layout to apply even spacing around each edge of each item. Content insets are applied after applying edgeSpacing.

The following diagram shows the result of applying 2 points of content insets to each edge of each item in a group.

[Image]

See Also

Configuring spacing and insets