We have SwiftUI files which will not preview without a target. In this case, opening the package directly as a folder through Xcode is not sufficient.
Post
Replies
Boosts
Views
Activity
zocario - we have a demo app that uses our package and have created a workspace containing the demo project and the package. We are also using SwiftLint and have opted to run the linter when building the demo app target. We mostly work from this workspace so it is sufficient for our needs.
We have recently discovered that having dependencies on a package breaks SwiftUI previews in that package. There is a radar for this bug already. It seems that having a project should not be necessary for those previews to work, so my first reply in this thread can be ignored.
If you find a way to get this working with your CI please let us know
Looks like the leak is caused by using the prefix operator. Removing it resolves the leak 100%.
Radar filed - FB8365664 (Memory leak when using the prefix operator with a TimerPublisher)