---
title: isHidden
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nscollectionviewlayoutattributes/ishidden
---

# isHidden

A Boolean value indicating whether the element is hidden.

## Declaration

```swift
var isHidden: Bool { get set }
```

## Discussion

Discussion The default value of this property is false. As an optimization, the collection view might not create the corresponding view when the value of this property is true. Because there might not be a view, hidden elements do not participate in hit testing for the collection view.

## See Also

### Accessing the Layout Attributes

- [frame](appkit/nscollectionviewlayoutattributes/frame.md)
- [size](appkit/nscollectionviewlayoutattributes/size.md)
- [alpha](appkit/nscollectionviewlayoutattributes/alpha.md)
- [zIndex](appkit/nscollectionviewlayoutattributes/zindex.md)
