Dynamically resize a XIB's root view to the size of its contents with Autolayout Dynamically resize a XIB's root view to the size of its contents with Autolayout xcode xcode