Swift Package that depends on Swift Package with Resources causes SwiftUI Preview to crash #104
-
Hello, been loving the Composable architecture and learning how to use it and work it into my own apps, and I've really been enjoying your modularization approach to splitting separate features into their own Swift packages but I seem to have hit a snag when I try to implement it myself. I just created a new project to try and work through the issue and right now it's setup with two features: an AuthenticationFeature and an AppFeature. In the AuthenticationFeature I have a custom image to be displayed, which works fine when I build the AuthenticationFeature and try to preview it, but then when I try to pull in the AuthenticationFeature into my AppFeature, SwiftUI previews continue to crash with this error:
I noticed in isowords you have a couple of features with images, but I can't seem to figure out how you got around this issue. Any help would be greatly appreciated. Thanks! Here is how I currently have my project structured:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Hi @matt-dewitt , this is a known limitation of default |
Beta Was this translation helpful? Give feedback.
Hi @matt-dewitt , this is a known limitation of default
Bundle.module
accessor auto-generated by Xcode. Have a look at a workaround here.