Enabling Safe Area Layout Guide loses standard spacing for constraints

Originator:keith
Number:rdar://32970194 Date Originated:25-Jun-2017
Status:Open Resolved:
Product:Xcode Product Version:9.0 beta 2
Classification:UI/Usability Reproducible:Always
 
Summary:
Enabling "Use Safe Area Layout Guide" for a Storyboard created with Xcode 8 should automatically convert all constraints that were using top and bottom layout guides. If there was a constraint to a top or bottom layout guide that was using "standard spacing" that spacing is lost when converted to use the safe layout guide.

Steps to Reproduce:
1. Create a new Xcode project with Xcode 8.3.3 using the single view template
2. Use Interface Builder to drag a new view onto the root view of the view controller.
3. Add constraints from the view to the leading and trailing container margins and the top and bottom layout guides.
4. Using the attributes inspector modify the Constant value for the top and bottom constraints to use "Standard" spacing.
5. Build and run the project. On an iPhone 7 the view should have 8 points of spacing to the status bar and the bottom of the screen.
6. Stop and close the project in Xcode 8 (see attached SafeArea8).
6. Open the project in Xcode 9 and in Interface Builder enable "Use Safe Area Layout Guides" in the file inspector. (see attached project SafeArea9)

Expected Results:
1. The top and bottom layout guides in the Storyboard scene are replaced by a safe area layout guide
2. The top and bottom constraints have standard spacing to the top and bottom anchors of the safe area layout guide
3. The view has the same position when run as before.

Observed Results:
1. safe area layout guide added as expected
2. the constraints appear to have "Standard" spacing in the attributes inspector
3. When run there is no spacing between the view and the status bar or the bottom of the screen.

Version:
Xcode 9 beta 2 (9M137d)
macOS Sierra 10.12.5

Notes:
It is possible to create vertical constraints with "Standard" spacing to top and bottom layout guides but not to the top and bottom anchors of the safe area layout guide.

Comments

I'm encountering several problems and bugs with Standard spacing and Safe Area, I've detailed them here: https://forums.developer.apple.com/message/259845#259845 This radar was filed nearly 3 months ago, have you had any response from Apple?

By craiggrummitt at Sept. 15, 2017, 3:56 p.m. (reply...)

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!