Contents

currentLayout

The collection view’s current layout object.

Declaration

var currentLayout: UICollectionViewLayout { get }

Discussion

This object provides the layout attributes representing the initial position of items in the collection view. If you ultimately cancel the transition, the collection view animates its items back to the positions provided by this object.

See Also

Accessing the layout objects