Swiftpack.co - SNQ-2001/unicons-symbols as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by SNQ-2001.
SNQ-2001/unicons-symbols 0.1.0
Converted to "symbol" for easy handling in Xcode.
⭐️ 1
🕓 1 year ago
iOS macOS watchOS tvOS
.package(url: "https://github.com/SNQ-2001/unicons-symbols.git", from: "0.1.0")

unicons-symbols

https://iconscout.com/unicons/explore/line

問題点

初回ビルドに約14分かかる(二回目以降のビルドは通常の速度)

解決策?

試したこと

  • Assets.xcassetsを分割して100枚ずつに分ける -> 効果なし
  • Resourcesファイルに直接SVGを入れる -> 重くなくなったが取得できない

Resourcesファイルに直接SVGを入れるに関してはもしかしたら取得できるかも?

色々試してみたがPNGは取得に成功したがSVGは取得できなかった

参考

https://www.enekoalonso.com/articles/displaying-images-in-swiftui-views-from-swift-package-resources https://zenn.dev/paraches/articles/sm-bundle-module

使用

推奨

重いのが解決するまでは使いたいUnicons Symbolsをダウンロードして使用する事をおすすめします。

こちらからダウンロードできます。

Swift Package Manager

https://github.com/SNQ-2001/unicons-symbols

GitHub

link
Stars: 1
Last commit: 1 year ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

Release Notes

0.1.0
1 year ago

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics