I create XIB in Xcode and add a simple view as a preview:

What I want to achieve is that the subview has a fixed size, and the rootview automatically resizes to the subtitle, leaving around 20.0%:

This way I add a fixed width and a fixed height limit in a subview. Then I add four constraints for field 20.0:

Since the supervisor does not have any restrictions, there should be no ambiguity or conflicting restrictions: I would expect the supervisor to shrink to fit the restrictions. However, Xcode complains:

These restrictions would be inconsistent if rootview had a fixed size and it seemed to be so. So my question is: How can I create an XIB flexible root view so that it dynamically adjusts its size according to its contents?
(is this possible with Interface Builder?)
xcode resize autolayout interface-builder constraints
Mischa
source share