cyclingIsBetter
cyclingIsBetter

Reputation: 17591

iOS: Hide UIStackView SubViews

I have a small issue in mu UIStackView. I created a project similar in this guide:

https://medium.com/@nrewik/easy-animation-with-uistackview-8878b2856ae2

and it works perfectly. Anyway if in the stackView there is only a subView it disappears on the top-left corner instead to disappear completely from the bottom side. Do you have any idea? Thanks.

Upvotes: 1

Views: 829

Answers (1)

cyclingIsBetter
cyclingIsBetter

Reputation: 17591

I found a solution to this problem, it's important to add a leading and trailing constraint to every single subview.

Upvotes: 3

Related Questions