Xcode9 Vector Assets do not scale in storyboards with constraints

Originator:nguyen.michael0
Number:rdar://32914633 Date Originated:June 22 2017, 12:29 PM
Status:Open Resolved:
Product:Developer Tools Product Version:Version 9.0 beta (9M136h)
Classification: Reproducible:Always
 
Summary:
In Xcode9, there is a new feature to use scalable PDFs as your image assets and preserve the vector data.
Adding that image via code seems to produce the desired effect of a scaled image, but when adding a UIImageView in storyboards with constraints and referencing that image, it does not scale as expected.

Steps to Reproduce:
1. Create an Xcode project.
2. Import a scalable, PDF vector into the Image Assets and check the "Preserve Vector Data" checkbox.
3. Add an UIImageView with a height + width constraint and select the above UIImage.
4. Run the app.

Expected Results:
The added image should scale it's vector data and be clear.

Observed Results:
The added image is blurry and not scaled properly.

Version:
Version 9.0 beta (9M136h)
macOS 10.12.5 (16F73)

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!