---
title: views
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nsstackview/views
---

# views

The array of views owned by the stack view.

## Declaration

```swift
var views: [NSView] { get }
```

## Discussion

Discussion The views array always contains all of the views owned and managed by the stack view, regardless of their gravity area placement and regardless of whether or not they are attached. The index position of each view in the array matches the view ordering within the stack view. A detached view’s index position is its stack view position when attached.

## See Also

### Inspecting a Stack View

- [views(in:)](appkit/nsstackview/views(in:).md)
- [detachedViews](appkit/nsstackview/detachedviews.md)
- [clippingResistancePriority(for:)](appkit/nsstackview/clippingresistancepriority(for:).md)
- [huggingPriority(for:)](appkit/nsstackview/huggingpriority(for:).md)
