Based on the docs, I tried to retrieve the URL of some resources in my package, but it seems to be impossible to do so ...
Doesn't matter if I use Bundle.module
or Bundle.main
to retrieve the URL
of a file in a target of my package. In both cases, url(forResource: String, withExtension: String?)
returned nil.
You can try the step by step guid as explained in docs in any package that you'd like, but you'll probably bump into the same issue as I did.
7 posts - 3 participants