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

Added support for Swift 6 / Strict Concurrency #437

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

SomeRandomiOSDev
Copy link
Contributor

This PR adds support for Swift 6 as well as enables strict concurrency in the project.

Appropriate annotations have been added to properties/method that access actor-isolated APIs and Sendable conformances have been added to types provided by the library (e.g. Device, Device.BatterState, etc.)

@Zandor300 Zandor300 force-pushed the somerandomiosdev/strict-concurrency branch from 51ef2f2 to bbfd0f8 Compare March 20, 2025 09:34
@gabors
Copy link

gabors commented Mar 20, 2025

@SomeRandomiOSDev Why all the @MainActor annotations?

@SomeRandomiOSDev
Copy link
Contributor Author

@SomeRandomiOSDev Why all the @MainActor annotations?

@gabors The annotations are due to the fact that UIDevice itself is restricted to the @MainActor, meaning that any API that uses it must also be annotated as such. WatchKit’s equivalent WKInterfaceDevice has no such restriction, hence all of the #if declarations

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.

3 participants