herzbube / littlego

Little Go. An iOS application that lets you play the game of Go on the iPhone or iPad.
https://littlego.herzbube.ch/
Apache License 2.0
138 stars 53 forks source link

Use SVG instead of PNG icons #330

Open herzbube opened 5 years ago

herzbube commented 5 years ago

Article that shows how to let Xcode generate PNGs from PDF vector files at build time: http://martiancraft.com/blog/2014/09/vector-images-xcode6/. Requires an asset catalog. Requires a special format "PDF vector files" - whatever that is. Unclear at the moment whether Inkscape can create this file format.

Third party library to draw SVG icons at runtime: https://github.com/SVGKit/SVGKit/. Supports CocoaPods. Read somewhere (I think it was Quora) that this is buggy and CPU hungry. It's easy to check the "buggy" claim, but rendering a couple of static icons can't be that bad.

herzbube commented 3 years ago

Xcode 12 Release Notes:

Added support for Scalable Vector Graphic (SVG) image assets. These preserve their vector representation with deployment targets of macOS 10.15 or later, iOS 13 or later, and iPadOS 13 or later. (18389814)