<!--
{
  "availability" : [
    "macOS: 10.11.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSStackView/removeArrangedSubview(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSStackView(im)removeArrangedSubview:"
  },
  "title" : "removeArrangedSubview(_:)"
}
-->

# removeArrangedSubview(_:)

Removes the provided view from the stack’s array of arranged subviews.

```
func removeArrangedSubview(_ view: NSView)
```

## Parameters

`view`

The view to be removed from the array of views arranged by the stack.

## Discussion

This method removes the provided view from the stack’s [`arrangedSubviews`](/documentation/AppKit/NSStackView/arrangedSubviews) array. After calling this method, the stack view no longer manages the view’s position and size. However, this method does not remove the provided view from the stack’s [`subviews`](/documentation/AppKit/NSView/subviews) array; therefore, the view still appears in the view hierarchy.

To prevent the view from appearing on screen after calling this method, explicitly call the view’s [`removeFromSuperview()`](/documentation/AppKit/NSView/removeFromSuperview()) method, or set its [`isHidden`](/documentation/AppKit/NSView/isHidden) property to <doc://com.apple.documentation/documentation/Swift/true>.

---

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)