Skip to content

Conversation

@danwood
Copy link
Contributor

@danwood danwood commented Jan 12, 2026

Fixes issue #1046

This yields unused warnings (unless --retain-swift-ui-previews option) on any code only used by #Preview code.
The newer #Preview macro works quite differently than the old PreviewProvider, so the algorithm to detect it is a bit more involved. I've created some tests, and I've also exercised it on a big code base with lots of code that's only used by its previews, that Periphery wasn't picking up on.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant