IOS stackview addArrangedSubview adds at a specific index

How can I add an ordered view at a specific index in a UIStackView?

sort of:

stackView.addArrangedSubview(nibView, atIndex: index) 
+5
source share
1 answer

You want you to insert, not add:

 func insertArrangedSubview(_ view: UIView, atIndex stackIndex: Int) 
+13
source

Source: https://habr.com/ru/post/1239040/


All Articles