Contents

edgeSpacing

The amount of space added around the boundaries of the item between other items and this item’s container.

Declaration

@NSCopying var edgeSpacing: NSCollectionLayoutEdgeSpacing? { get set }

Discussion

Use this property to adjust the position of the item in relation to its container and other items. For example, you can use this property to apply extra space to the trailing edge of each item. Edge spacing is applied before applying contentInsets.

The following diagram shows the result of applying 2 points of trailing edge spacing to the items in a group:

[Image]

See Also

Configuring spacing and insets