Xcode draws invisible #imageLiteral for transparent image

Originator:marcin.krzyzanowski
Number:rdar://40326133 Date Originated:17/05/2018
Status:Open Resolved:
Product:Xcode Product Version:9.3.1
Classification:Bug Reproducible:Always
 
Summary:
When using #imageLiteral with Xcode, it's automatically drawn as inlined image in the source editor. If Image is transparent, the drawn image is invisible.

Steps to Reproduce:
1. Set Theme with white background
2. Add a transparent image with white lines on it
3. Use the #imageLiteral in source editor

Expected Results:
1. Image is drawn with grayed background
and
1. Possibility to disable drawing images for #imageLiteral (eg. in Editor menu)

Actual Results:
Draw invisible space

Version/Build:
Xcode version 9.3.1 (9E501)

Attachment: https://user-images.githubusercontent.com/758033/40170407-a8f9173a-59c8-11e8-8590-a098ee570a31.png

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!