Image literals use the file name instead of the image set name.

Originator:bwhiteley
Number:rdar://26947751 Date Originated:June 22 2016
Status:DUPLICATE OF 26873899 Resolved:
Product:Xcode Product Version:8
Classification:Bug Reproducible:Yes
 
Summary:
Image literals in Xcode should display the image set name. Instead it displays a file name.

Steps to Reproduce:
Open the attached project. 
Note that the asset name is "quinn" in the Assets.xcassets.
Now open ViewController.swift. Notice that it displays an ugly file name for the image name "Screen Shot 2016..." instead of "quinn" 
Now view ViewController.swift in a text editor other than Xcode, and note the name is "quinn" (as it should be). 

Expected Results:
Xcode should display the image set name. 

Actual Results:
Xcode displays the file name. 

Version:
Version 8.0 beta (8S128d)

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!