Contents

addArrangedSubview(_:)

Adds a view to the end of the arranged subviews array.

Declaration

func addArrangedSubview(_ view: UIView)

Parameters

  • view:

    The view to add to the array of views arranged by the stack.

Discussion

The stack view ensures that the arrangedSubviews array is always a subset of its subviews array. This method automatically adds the provided view as a subview of the stack view, if it isn’t already. If the view is already a subview, this operation doesn’t alter the subview ordering.

See Also

Related Documentation

Managing arranged subviews