Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

iOS Build a Playlist Browser with Swift Building the Music Library and Playlist Models Using UIImageView

True Pixels
True Pixels
3,178 Points

Can't drag icon from Unassigned to Universal

I cannot seem to drag an icon from "Unassigned" to "Universal" in the "images.xcassets"

Image set settings: http://gyazo.com/93769eb6e95404fbf6bfb901aeac3e78

4 Answers

Nick Jones
Nick Jones
2,086 Points

Ah perfect thanks Les, I completely missed the fact that the icon in the screenshot is a PNG file. The reason it won't let you drag it to universal is, well, simply because it's a PNG. The universal icon set slot takes a PDF type file as from that it can automatically generate @1x, @2x and @3x size icons for each different screen size without worry of the images stretching. As PNG files are one static size it isn't viable for Swift to use one image to cover three different sizes and so this is why you are having this problem. The best thing to do is to recreate the PNG icons you have in PDF form and you should find that you can then drag them in to the universal slot.

Hope this helps!

Nick Jones
Nick Jones
2,086 Points

Without sounding dim or condescending are you able to drag anything at all from finder in to the Universal icon space?

Les Campbell
Les Campbell
26,071 Points

I'm having the same problem. I am using my own icons, but they are png files.

XCode 6.1.1

Les Campbell
Les Campbell
26,071 Points

PDF Files! I can't tell you how many times I've gotten these mixed up in the past.