Skip to content

Conversation

cweider
Copy link

@cweider cweider commented Feb 12, 2025

In the SDKs released with Xcode 16.2, Apple marked this closure @Sendable, but not @MainActor. It's not clear if this is intentional or if it may be revised later. The official recommendation appears to be capturing the Binding and writing to it (Binding is asserted to be Sendable).
https://stackoverflow.com/questions/79209071/xcode-16-2-beta-2-renders-onpreferencechange-unusable

In the SDKs released with Xcode 16.2, Apple marked this closure
`@Sendable`, but *not* `@MainActor`. It's not clear if this is
intentional or if it may be revised later. The official
recommendation appears to be capturing the `Binding` and writing
to it (`Binding` is asserted to be `Sendable`).
https://stackoverflow.com/questions/79209071/xcode-16-2-beta-2-renders-onpreferencechange-unusable
@cweider cweider force-pushed the concurrency-on-preference-key branch from 94cc7b7 to 972fe63 Compare February 12, 2025 06:09
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.

1 participant