I\'m migrating older code that used NIBs to use manual view creation (loadView
) and Auto Layout. The root view controller is a container VC
A different solution - I found if presenting from a view controller within a container view (as opposed to a subview), if you switch the segue from Modal to Show, your constraints will stay the same on your initial view but still animate as if you presented modally and still be able to call dismissViewController correctly.