I would like to animate between two different UIView's that occupy the same space on the screen. Sometimes the user would like to see an Image and other times statistics. By tapping a button I would like to animate between the two.
Right now I only have one of the views arranged inside the stackView in a XIB and I'm wondering how do i set this up without messing up autoLayout?
Do I need to get a reference to the stackView and one view for the other there? And if so does that mean I have to setup layout constraints programatically?
What's the best way to handle this?
Thank you.