-
-
Notifications
You must be signed in to change notification settings - Fork 115
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SwiftUI previews with multiple modules #200
Comments
Would probably need a minimum viable project to try and diagnose this. |
I'll prepare a quick demo. |
Demo: This demo is a project using clean architecture with multiple modules, where each layer (Data, Domain, and Presentation) is separated into distinct modules. In this setup, the Presentation module is separated into a package, and the App module is responsible for injecting dependencies into the other modules. Problem: Fix: Screenshots: Let me know if you need anything else! |
Hello,
I've been facing problems with the SwiftUI preview, I have an app that runs clean architecture in multiple modules, SwiftUI preview doesn't work properly running the app scheme, so I had to run specifically the UI module, this works properly in most of the cases but sometimes injecting with
@LazyInjected
doesn't solve the issue and get the errorresetAndTriggerFatalError("\(T.self) was not registered", #file, #line)
, I tried changing the build configuration to release for that module but for some reason the preview didn't work at all.The text was updated successfully, but these errors were encountered: