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

Improve Swift compatibility for main thread delegate methods #159

Merged
merged 1 commit into from
Oct 4, 2024

Conversation

jszumski
Copy link
Contributor

Adds NS_SWIFT_UI_ACTOR to delegate methods that are documented to be called on the main thread.

Fixes #158.


typedef void (^ARKEmailBugReporterCustomPromptCompletionBlock)(ARKEmailBugReportConfiguration *_Nullable configuration);
typedef void (^ARKEmailBugReporterCustomPromptCompletionBlock)(ARKEmailBugReportConfiguration *_Nullable configuration) NS_SWIFT_UI_ACTOR;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Due to swiftlang/swift#76099 these blocks will only get @MainActor in Xcode 16.0+

Since they're silently dropped on older Xcodes we aren't any worse off than before this change

@luispadron luispadron merged commit 491d57c into square:master Oct 4, 2024
2 checks passed
@jszumski jszumski deleted the swift-main-actor branch October 4, 2024 16:06
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.

Main thread delegate methods are missing NS_SWIFT_UI_ACTOR
3 participants