---
title: currentLayout
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nscollectionviewtransitionlayout/currentlayout
---

# currentLayout

The collection view’s current layout object.

## Declaration

```swift
var currentLayout: NSCollectionViewLayout { get }
```

## Discussion

Discussion Use this object to retrieve the initial layout attributes for elements of the collection view. If the transition is ultimately cancelled, the collection view animates its items back to the attributes provided by this object.

## See Also

### Accessing the Layout Objects

- [nextLayout](appkit/nscollectionviewtransitionlayout/nextlayout.md)
