Reply to Autolayout issue with Compositional Layout Setting the priority of the bottom or trailing constraint (based on you want dynamic height or dynamic width) to 999 solved the problem for me. UI Frameworks UIKit Jun ’22