<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.1.0 -",
    "tvOS: 13.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/NSCollectionLayoutVisibleItem",
  "metadataVersion" : "0.1.0",
  "role" : "Protocol",
  "symbol" : {
    "kind" : "Protocol",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(pl)NSCollectionLayoutVisibleItem"
  },
  "title" : "NSCollectionLayoutVisibleItem"
}
-->

# NSCollectionLayoutVisibleItem

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

```
@MainActor protocol NSCollectionLayoutVisibleItem : UIDynamicItem
```

## 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`](/documentation/UIKit/NSCollectionLayoutSectionVisibleItemsInvalidationHandler)), stored in the [`visibleItemsInvalidationHandler`](/documentation/UIKit/NSCollectionLayoutSection/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`](/documentation/UIKit/NSCollectionLayoutVisibleItem/name)

The name of the item.

[`representedElementKind`](/documentation/UIKit/NSCollectionLayoutVisibleItem/representedElementKind)

A string that identifies the type of item.

[`representedElementCategory`](/documentation/UIKit/NSCollectionLayoutVisibleItem/representedElementCategory)

A category that identifies the item, such as decoration or supplementary view.

### Getting the index path

[`indexPath`](/documentation/UIKit/NSCollectionLayoutVisibleItem/indexPath)

The index path of the item.

### Configuring appearance

[`alpha`](/documentation/UIKit/NSCollectionLayoutVisibleItem/alpha)

The transparency of the item.

[`isHidden`](/documentation/UIKit/NSCollectionLayoutVisibleItem/isHidden)

A Boolean value that determines whether the item is hidden.

### Configuring position

[`frame`](/documentation/UIKit/NSCollectionLayoutVisibleItem/frame)

The frame rectangle, which describes the item’s location and size in its section’s coordinate system.

[`bounds`](/documentation/UIKit/NSCollectionLayoutVisibleItem/bounds)

The bounds rectangle, which describes the item’s location and size in its own coordinate system.

[`center`](/documentation/UIKit/NSCollectionLayoutVisibleItem/center)

The center point of the item’s frame rectangle.

[`transform`](/documentation/UIKit/NSCollectionLayoutVisibleItem/transform)

The transform applied to the item, relative to the center of its bounds.

[`transform3D`](/documentation/UIKit/NSCollectionLayoutVisibleItem/transform3D)

The 3D transform applied to the item.

### Specifying stacking order

[`zIndex`](/documentation/UIKit/NSCollectionLayoutVisibleItem/zIndex)

The vertical stacking order of the item in relation to other items in the section.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)