---
title: NSCollectionLayoutVisibleItem
framework: appkit
role: symbol
role_heading: Protocol
path: appkit/nscollectionlayoutvisibleitem
---

# NSCollectionLayoutVisibleItem

An item that’s currently visible within the bounds of a section.

## Declaration

```swift
@MainActor protocol NSCollectionLayoutVisibleItem : NSObjectProtocol
```

## Overview

Overview A visible item represents an item in a collection view that’s currently visible onscreen, such as a cell, supplementary view, or decoration. You access a specific section’s visible items in its visible item invalidation handler (NSCollectionLayoutSectionVisibleItemsInvalidationHandler), stored in the visibleItemsInvalidationHandler property. The handler is called before each layout cycle, any time an animation occurs in that section due to changes such as adding or removing items, scrolling the section, or rotating the device.

## Topics

### Identifying the item

- [name](appkit/nscollectionlayoutvisibleitem/name.md)
- [representedElementKind](appkit/nscollectionlayoutvisibleitem/representedelementkind.md)
- [representedElementCategory](appkit/nscollectionlayoutvisibleitem/representedelementcategory.md)

### Getting the index path

- [indexPath](appkit/nscollectionlayoutvisibleitem/indexpath.md)

### Configuring appearance

- [alpha](appkit/nscollectionlayoutvisibleitem/alpha.md)
- [isHidden](appkit/nscollectionlayoutvisibleitem/ishidden.md)

### Configuring position

- [frame](appkit/nscollectionlayoutvisibleitem/frame.md)
- [bounds](appkit/nscollectionlayoutvisibleitem/bounds.md)
- [center](appkit/nscollectionlayoutvisibleitem/center.md)

### Specifying stacking order

- [zIndex](appkit/nscollectionlayoutvisibleitem/zindex.md)

## Relationships

### Inherits From

- [NSObjectProtocol](objectivec/nsobjectprotocol.md)

## See Also

### Layout updates

- [NSCollectionLayoutSectionVisibleItemsInvalidationHandler](appkit/nscollectionlayoutsectionvisibleitemsinvalidationhandler.md)
