UIScrollView zooming with auto layout is completely broken in iOS 12 beta 1

Number:rdar://41125342 Date Originated:June 14th 2018
Status:Closed Resolved:July 3rd 2018
Product:iOS + SDK Product Version:iOS 12.0 (16A5288q)
Classification:Serious Bug Reproducible:Always

A zooming UIScrollView with a UIImageView subview constrained to the edges of the scroll view using auto layout does not work when the image is larger than the UIScrollView. 
This works fine in iOS 11.4 but is broken in iOS 12 beta 1

I have a demo project which reproduces the issue every time:

Steps to Reproduce:
Create a UIScrollView, add a UIImageView, with an image larger than the scrollview, as a subview, pinning its edges to the edges of the scroll view using auto layout constraints.

Expected Results:
The image should be displayed, and it should be possible to zoom and pan the image.

Actual Results:
The image is not visible at all.

iOS 12.0 (16A5288q)
Xcode 10 beta (10L176w)



Fixed in iOS 12 beta 3

By michaelab1 at July 5, 2018, 10:57 a.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!