Constraints Companion sample project from Dynamic Autolayout: http://zerously.com/2016/08/15/dynamic-autolayout.html Requires Xcode 8 b5 or higher.