I have a complex view hierarchy, built in Interface Builder, with nested UIStackViews. I get \"unsatisfiable constraints\" notices every time I hide some of my inner stackviews.
This is a known problem with hiding nested stack views.
There are essentially 3 solutions to this problem:
innerStackView.removeFromSuperview(), but then you'll need to remember where to insert the stack view.The 3rd option is the best in my opinion. For more information about this problem, why it happens, the different solutions, and how to implement solution 3, see my answer to a similar question.