You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I added OAStackView to UIScrollView with IB. UIScrollView has leading, trailing, top and bottom constraints to superview (just UIView of VC). OAStackView also has same constraints, but according to UIScrollView. And in addition OAStackView has same width as UIView (superview of UIScrollView).
In the beginning all views on OAStackView have right sizes and positions as I set. But when I try to append another UIView by using addArrangedSubview, OAStackView increases it's height by 10 (spacing of OAStackView as I set). Therefore after I append another UIView, it position is above previous view.
Maybe I need update OAStackView constraints or size some how?
Thanks for any advance!
The text was updated successfully, but these errors were encountered:
I solved this issue. It was not a bug. When adding new UIView to OAStackView or UIStackView you have to specify view's height or width constraint with Auto Layout depending on axis.
Hello!
I added OAStackView to UIScrollView with IB. UIScrollView has leading, trailing, top and bottom constraints to superview (just UIView of VC). OAStackView also has same constraints, but according to UIScrollView. And in addition OAStackView has same width as UIView (superview of UIScrollView).
In the beginning all views on OAStackView have right sizes and positions as I set. But when I try to append another UIView by using
addArrangedSubview
, OAStackView increases it's height by 10 (spacing of OAStackView as I set). Therefore after I append another UIView, it position is above previous view.Maybe I need update OAStackView constraints or size some how?
Thanks for any advance!
The text was updated successfully, but these errors were encountered: