Post

Replies

Boosts

Views

Activity

Preview and bundle for modular app target
I have a dummy project that is set up in the following way: one Xcode project two frameworks, UI and Feature, Feature embeds UI-framework three app targets, two that are SwiftUI lifecycle and one UIKit lifecycle all app targets import the Feature framework all app targets have same setup for asset catalogue The point of this setup is to be able to switch between app target scheme and see preview changes accordingly. That works 100% with anything coming from the asset catalogue and even localization catalogues. The dummy project exists as a proof of concept for the main project (8 years old, all Swift) I am working on. However, the same setup does not work in the main project. I am suspecting it has to do with how the project is initialised and bundles. I print out the bundles to see which bundles are registered. Dummy project will print out the bundle based on app target, the main bundle being based on the selected scheme. The main project will have the previews.com.apple.PreviewAgent.iOS as main bundle.
2
0
99
1w