Can be used inside a Framework?
YisusFin opened this issue · 3 comments
I'm facing some troubles trying to load some fonts embedded in a Cocoapod development using FontBlaster. Every bundlepath that I get from the ClientApp that consumes the pod points to the 'DevelopmentPod' project. And I want to load the font files that lives in my framework project. I'm thinking to use like an absolute path, to point into the BundleFramework, but I don't know how. Is there any example to achieve this? Or is that can be used only in App projects?
Thanks.
Hey, I've never checked, so I'm not sure at all. I'm not really coding much these days either, so this maybe an oversight. If you find a fix in the code, please let me know.
I think it does depend on the app plist, so then I think it being an app matters the way it's currently authored.
Thanks for the response. I've tried to use it from inside the framework project and I discovered that my fonts where required to be imported from the podspec file of the project (i'm not familiar with the creation of pods since is my very first pod). And from there, FontBlaster is able to find the Fonts of my framework only with the requirement of passing the bundle of my framework. Otherwise, from the Bundle.main (default config of FontBlaster) of the client app there where not found. Maybe I'm misunderstanding that a deep search will be performed on that scenario.
But for now is working using the specific Bundle of my framework in development.
Thanks for such a great tool.
Glad it works! Thanks for the update!