SVGはScalable Vector Graphics(スケーラブル・ベクター・グラフィックス)の略で、ベクター画像形式のひとつです。 今回はSVGの用途別に合わせて2つのライブラリをご紹介したいと思います。 画像として扱いたい SVGKit/SVGKit パスを扱う場合 mchoe/SwiftSVG どちらもMITライセンスです。 開発環境 今回の開発環境は下記で実施しています。 Xcode ターゲットはiOS8.1、デバイスはiPhone、画面回転無しでProjectを作成しました。 準備 導入 CocoaPodsで追加します。 SVGKit use_frameworks! target "ターゲット名" do pod 'SVGKit', :git => 'https://github.com/SVGKit/SVGKit.git', :branch => '2.x' end ※ ma
![SwiftでSVGを表示する方法 | DevelopersIO](https://cdn-ak-scissors.b.st-hatena.com/image/square/4b9b98d8423d1943cae402d21764bf51589e811b/height=288;version=1;width=512/https%3A%2F%2Fdevio2023-media.developers.io%2Fwp-content%2Fuploads%2F2014%2F11%2Flogo_swift_400x400.png)