Contents

arrangedSubviews

The list of views arranged by the stack view.

Declaration

var arrangedSubviews: [UIView] { get }

Discussion

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 isn’t already. Whenever an arranged view’s removeFromSuperview() method is called, the stack view removes the view from its arrangedSubviews array.

See Also

Related Documentation

Managing arranged subviews