Skip to content
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

Conformance to Sendable #2

Closed
vdhamer opened this issue May 21, 2024 · 2 comments
Closed

Conformance to Sendable #2

vdhamer opened this issue May 21, 2024 · 2 comments

Comments

@vdhamer
Copy link

vdhamer commented May 21, 2024

The current version 15.4 of Xcode and Swift 5.10, provides opt-in data-race checking for safe concurrency. The checking prevents data races by design.

If I install the code locally using "Clone using the web URL" and build the package (rather than the example app) using Xcode, I get a compiler warning:

Stored property 'base' of 'Sendable'-conforming struct 'AnyShapeBackport' has non-sendable type '(CGRect) -> Path'

Possibly Swift 6.0 may avoid this warning: Swift 5.10 has false positives that they want to get rid of in 6.0. See https://github.com/apple/swift-evolution/blob/main/proposals/0418-inferring-sendable-for-methods.md

@pavolkmet
Copy link
Owner

pavolkmet commented Jun 5, 2024

Hey @vdhamer thank you for bringing this up. In the new version 1.4.0 this is going to be resolved.

@vdhamer
Copy link
Author

vdhamer commented Jun 6, 2024

Thank you.

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

No branches or pull requests

2 participants