Embed in -> View should translate constraints of subviews to new parent

Originator:yonix85
Number:rdar://26363747 Date Originated:19-May-2016 10:51 AM
Status:Open Resolved:
Product:Developer Tools Product Version:Xcode 7.3.1
Classification:Enhancement Reproducible:Always
 
Summary:
When marking some views and using "Embed in View" in Interface Builder, all subviews lose their AutoLayout constraints against their superview and eachother.
There's actually no reason for that and it creates a huge pain when doing this in a complex storyboard with lots of constraints. E.g. One would expect for instance that views that are centered against their superview will remain centered against the new parent, etc.

Steps to Reproduce:
Mark a few views that have constraints, go to Editor -> Embed In -> View

Expected Results:
Views will keep their constraints against siblings and ancestor

Actual Results:
They lose these constraints

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!