Feature Request: Please add asset catalog support for SVG files

Originator:designatednerd
Number:rdar://24503031 Date Originated:04-Feb-2016 08:45 AM
Status:Open Resolved:
Product:Developer Tools Product Version:7.2
Classification:UI/Usability Reproducible:Always
 
Summary:
I (and my designers) would love to be able to use SVG rather than PDF for resizeable assets. The advantages of SVG over the current PDF solution are significant: 

- SVG is a standard which is already supported for export from most design programs. Getting PDFs exported that work correctly on iOS requires tweaking. 
- Significantly smaller file sizes than PDF. 
- New screen sizes could be supported automatically without requiring recompiliation, as would currently be required with the PDF solution since PNGs are generated by Xcode at 1x, 2x, and 3x to be used within the app. 
- The same SVG could be used for different sizes of image (for example, large and small versions of a logo), whereas the PDF solution requires different PDFs rendered at whatever the “1x” size for each image. 
- SVGs are already heavily in use on the web, so being able to use them on iOS would reduce the amount of work our designers need to do to export assets since they could use SVG for both web and iOS.

Steps to Reproduce:
1. Attempt to add SVG to asset catalog as universal size image.
2. Have sad when that doesn’t work.

Expected Results:
1. Attempt to add SVG to asset catalog as universal size image.
2. It is added. 
3. Image is rendered properly at any size (preferably accessible as a UIImage or NSImage)

Actual Results:
(see “steps to reproduce”)

Regression:
Not a regression - this would be a new feature.  

Notes:
There’s a couple of libs out there that attempt to do this to varying degrees of success, but direct asset catalog support would be REALLY helpful. Please? :)

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!