What is the best way (less code = better) to completely hide a view and all of its subviews and at the same time shift related views below it to take its space? Something like what a (vertical) UIStackView does when you set hidden = YES on one of its elements.
I would like to know how this is supposed to be done with Auto Layout without using stack views. People were doing it somehow before UIStackView was added, right? The only thing that comes to mind is making outlets to absolutely ALL height and vertical spacing constraints for all the subviews and set them to zero when I want to collapse the parent view. But this seems like too much code, I thought there surely must be a better way to do that.