Hi, thanks for providing an example project. This is a known issue. For now you can try the following workaround. If you set the product type in your package to dynamic then previews should work for you. In the example you provided you would do this as follows: products: [ // Products define the executables and libraries a package produces, making them visible to other packages. .library( name: MyLibrary, type: .dynamic, targets: [MyLibrary]), ],
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: