How do I add a custom font to a Cocoapod?

前端 未结 5 873
一生所求
一生所求 2021-01-31 03:43

I want to use a custom font within a Cocoapod, but I can\'t find anything on using a custom font within a static library. As there is no info.plist file, there is no where to te

5条回答
  •  别跟我提以往
    2021-01-31 04:35

    Well, idk if it can be an answer, but you can also look to cocoapod that has needed font, like this: https://github.com/parakeety/GoogleFontsiOS

    Library contains many fonts, i needed Chivo, so i added pod 'GoogleFontsiOS/Chivo' and used it instead of writing font-loading code by myself.

提交回复
热议问题