Skip to content
This repository has been archived by the owner on Jun 21, 2022. It is now read-only.

iOS example of displaying vector graphics for resolution independence

License

Notifications You must be signed in to change notification settings

brackendev/iOS-Resolution-Independence-Swift

Repository files navigation

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.


iOS Resolution Independence Example (Swift)

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.

Installation

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

Ports

Acknowledgements

This project makes use of the following third-party libraries:

Author

Bracken Spencer

License

iOS-Resolution-Independence-Swift is released under the MIT license. See the LICENSE file for more info.


PDF Tips

  • 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.

Useful Links