Instance Property


The list of views arranged by the stack view.


var arrangedSubviews: [UIView] { get }


The stack view ensures that the arrangedSubviews array is always a subset of its subviews array. Therefore, whenever the addArrangedSubview(_:) method is called, the stack view adds the view as a subview, if it is not already. Whenever an arranged view’s removeFromSuperview() method is called, the stack view removes the view from its arrangedSubview array.

See Also

Managing Arranged Subviews

func addArrangedSubview(UIView)

Adds a view to the end of the arrangedSubviews array.

func insertArrangedSubview(UIView, at: Int)

Adds the provided view to the array of arranged subviews at the specified index.

func removeArrangedSubview(UIView)

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