I have problem during developing my project. I've decided to switch to SPM and almost everything is working as expected, but I'm fighting with one thing quite long and I don't know that should I do.
I have couple of packages. One of them is UI package which contains some images, custom implementations of some reusable screens etc, but most important is that it contains some icons that are being used around other packages.
I have second package, which is covering implementation of one of part of my application. In this we can find all screens connected with this functionality, and also it has some storyboards inside (in the future I will rewrite this storyboards to code version). And there I have an problem - since storyboards cannot load images from other bundle during runtime so even if in Xcode I can see that storyboard has an image and this image is from other package, during runtime it is not loading. When I was using Pods for that, I had a little script which was creating reference between Assets folder form UI framework to FunctionalityFramework and after this operation images were loading properly (similar like described there: Storyboard, UIImageView. Load image from bundle)
But how I can achieve that with SPM? I cannot make reference between two packages and their folders. Is there any way to achieve that?