After upgrading to the latest version of Xcode, I'm no longer able to select "Constraint" from the layout dropdown in IB for the root view in a view controller. When I create a new view controller in my storyboard, the available options are "Inferred (Autoresizing Mask)" and "Autoresizing Mask" and the popup views for setting constraints are disabled.
Previously created view controllers still show "Inferred (Constraints)" and "Autoresizing Mask" as the available options.
Any ideas on how I can get back to using constraints?
Previously created view controllers still show "Inferred (Constraints)" and "Autoresizing Mask" as the available options.
Any ideas on how I can get back to using constraints?
I tested with Xcode 12.3.
I effectively get the exact problem you have.
And not only for top view, but for anyview included.
It occurs as well if I include a new view (e.g. label) inside an existing.
However, as soon as you create a constraint (control-drag to the safe area limit for instance), then inferred (constraints) will show.
So there is a workaround for subviews, but not for main view.
And the main view do not show the constraints relative to it anymore.
There is no problem with Xcode 12.2
There is a bug to report here specific to 12.3 (or it is a change that do need to be explained).
I effectively get the exact problem you have.
And not only for top view, but for anyview included.
It occurs as well if I include a new view (e.g. label) inside an existing.
However, as soon as you create a constraint (control-drag to the safe area limit for instance), then inferred (constraints) will show.
So there is a workaround for subviews, but not for main view.
And the main view do not show the constraints relative to it anymore.
There is no problem with Xcode 12.2
There is a bug to report here specific to 12.3 (or it is a change that do need to be explained).