-
Notifications
You must be signed in to change notification settings - Fork 19
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
Add Support for Swift 6 #81
Comments
Hi @BarredEwe Thanks for the update. But I still get the same issues with I run the preview tests? In the PreviewTests file.. Should I update the stencil file? |
And we get that issue because we have components that are marked with @mainactor |
@woutergoossens Can you attach an example View with this error? |
Yes, created an example. If you add this ButtonTestView, it will fail To make the code compile, we can add @mainactor above the static func Contained. But then the preview tests will fail. |
Thank you very much for your contribution to the project! The example helped to fix these errors. Added the fix to the latest release |
Hi! This problem is reproduced only in Xcode 16.2. I had to update and immediately got it fixed! |
Indeed, was only with the Xcode 16.2.. Thanks for the fast update! |
Context π΅οΈββοΈ
Our Design System (fully built in SwiftUI) is a separate Swift Package and is optimized for Swift 6.
We use the PrefireTestsPlugin for preview tests.
What π±
When I update our swift-tools-version to 6.0 I receive the following errors:
Proposal π
Is it possible to update Prefire to Swift 6 and make it compatible with Swift Concurrency?
The text was updated successfully, but these errors were encountered: