pavolkmet / ScrollViewSectionKit

A SwiftUI library that allows you to add native (plain, grouped, insetGrouped) or custom section styles within the ScrollView SwiftUI component.
MIT License
42 stars 5 forks source link

Conformance to Sendable #2

Closed vdhamer closed 5 months ago

vdhamer commented 5 months ago

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 commented 5 months ago

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

vdhamer commented 5 months ago

Thank you.