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

Restore swift 5 compilations #52

Merged
merged 3 commits into from
Sep 26, 2024
Merged

Restore swift 5 compilations #52

merged 3 commits into from
Sep 26, 2024

Conversation

lickel
Copy link
Collaborator

@lickel lickel commented Sep 25, 2024

The two main issues were:

  • KeyPath<> & Sendable
  • Thunks

I mostly don't care about this except that older versions of SPM are getting very confused since the swift-tools-version was too high

@@ -418,33 +418,73 @@ private class DelegateThunk<FetchedObject: FetchableObject> {

private weak var parent: (any Parent)?

#if compiler(<6)
private let willChange: @MainActor (_ controller: Controller) -> Void
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Marking these as @sendable in Swift 6 is awkward since it would require Parent to be sendable.
That's why I can't use the old Thunk impl in Swift 6

@lickel lickel force-pushed the restore-swift5 branch 6 times, most recently from 9f610e2 to 4c7fa22 Compare September 26, 2024 00:30
@lickel lickel merged commit f313228 into main Sep 26, 2024
5 checks passed
@lickel lickel deleted the restore-swift5 branch September 26, 2024 13:25
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.

2 participants