Search code examples
iosxcasset

Images.xcassets: How to use one image for all resolutions


I'm trying to use a PDF scalar vector image instead of having 1x,2x,3x image sizes. However, when I drag my PDF image it create three slots when I only want one "All".

Looks like this: enter image description here

But it should look like this:

enter image description here

How to configure the image so there's only one slot?


Solution

  • You forgot to tell it that this was a vector image:

    enter image description here