With the release of the iPhone 6 Plus and "the weirdness of the resolution," the original, forward-thinking example from 2012 showcased a more efficient way to display vector-originating images.
An iOS example of adding resolution independence and future-proofing your app by using vector graphics.
This project displays a PDF file as different sizes and colors.
MGImageUtilities and UIImage-PDF submodules are required, therefore be sure to git clone like this:
git clone --recursive https://github.com/brackendev/iOS-Resolution-Independence-Swift.git
This project makes use of the following third-party libraries:
Bracken Spencer
iOS-Resolution-Independence-Swift is released under the MIT license. See the LICENSE file for more info.
- UIImage-PDF didn't like the PDF file that Adobe Illustrator made. So, instead of saving to PDF, save it to EPS, open it in Preview, then save it to PDF.
- Use Panic's ShrinkIt to reduce the PDF size.