Skip to content

Modern concurrency support #175

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

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

bbrk24
Copy link
Contributor

@bbrk24 bbrk24 commented Jun 3, 2025

No description provided.

@stackotter
Copy link
Owner

I've tried building a few of my local projects with these changes, and the main things I've bumped into are;

  • view initialisers should be nonisolated where possible (to allow for things such as storing/producing Images from stored/computed properties)
  • button actions should be just @MainActor (without @Sendable) if possible?

I'll try with a few more projects when I get the time to see if anything else comes up.

@bbrk24
Copy link
Contributor Author

bbrk24 commented Jun 12, 2025

I can try to make Image's initializer nonisolated, but in my personal projects when I need to send an image around, I traffic in ImageFormats.Image<RGBA>, not SwiftCrossUI.Image.

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