Skip to content

Conversation

mbrandonw
Copy link
Member

While we don't feel that most projects should be using default main actor isolation, it is the default for new projects in Xcode 26. As such we have converted our demo apps to use default main actor isolation so that one knows how to work around its quirks.

@mbrandonw mbrandonw requested a review from stephencelis October 8, 2025 19:13
}

enum Section: Hashable {
nonisolated enum Section: Hashable {
Copy link
Member Author

Choose a reason for hiding this comment

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

This is actually unrelated to our library. It's required just to work with UICollectionViewDiffableDataSource in default main actor isolation mode.


extension DependencyValues {
var openSettings: @Sendable () async -> Void {
nonisolated var openSettings: @Sendable () async -> Void {
Copy link
Member Author

Choose a reason for hiding this comment

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

this is what is necessary to work with Dependencies in default main actor isolation mode.

.denied
}
var startTask:
@Sendable (_ request: SFSpeechAudioBufferRecognitionRequest) async -> AsyncThrowingStream<
Copy link
Member Author

Choose a reason for hiding this comment

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

SFSpeechAudioBufferRecognitionRequest is not sendable and this is now complaining. but we really don't need to accept this value as an argument in this demo so I just got rid of it.

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