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'
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:
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