<!--
{
  "availability" : [
    "iOS: 9.0.0 -",
    "iPadOS: 9.0.0 -",
    "macCatalyst: 13.1.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIStackView/removeArrangedSubview(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UIStackView(im)removeArrangedSubview:"
  },
  "title" : "removeArrangedSubview(_:)"
}
-->

# removeArrangedSubview(_:)

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

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

## 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/UIKit/UIStackView/arrangedSubviews) array. The stack view no longer manages the view’s position and size. However, this method doesn’t remove the provided view from the stack’s [`subviews`](/documentation/UIKit/UIView/subviews) array; therefore, the view is still displayed as part of the view hierarchy.

To prevent the view from appearing on screen after calling the stack’s [`removeArrangedSubview(_:)`](/documentation/UIKit/UIStackView/removeArrangedSubview(_:)) method, explicitly remove the view from the subviews array by calling the view’s [`removeFromSuperview()`](/documentation/UIKit/UIView/removeFromSuperview()) method, or set the view’s [`isHidden`](/documentation/UIKit/UIView/isHidden) property to <doc://com.apple.documentation/documentation/Swift/true>.

## See Also

[`-  removeFromSuperview`](/documentation/UIKit/UIView/removeFromSuperview())

Unlinks the view from its superview and its window, and removes it from the responder chain.

[`-  initWithArrangedSubviews:`](/documentation/UIKit/UIStackView/init(arrangedSubviews:))

Returns a new stack view object that manages the provided views.



---

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)