Reputation: 4827
we can add image as pdf in ios assets for application.But i'm confusing that which approach is good for application.
i have follows links https://icons8.com/articles/how-to-use-vectors-in-xcode-7/ and https://bjango.com/articles/idontusepdfs/ but not able to decide which one is better solution for assets. i know how to works with pdf asset but cannot decide which method is better from development point of view.
Thanks in advance.
Upvotes: 0
Views: 8026
Reputation: 4862
If your artwork has complex gradients, generate the PNGs yourself. Otherwise, use PDFs. That's how I read it.
Personally, I have the luxury of working with a designer who just gives me assets at all the required sizes. On another project, Sketch was used which can auto-generate PNGs from a script as part of the build process. So I've never actually used PDFs.
Upvotes: 2