Skip to content

Fixes for Swift 6#848

Draft
stevenzeck wants to merge 5 commits into
readium:swift6from
stevenzeck:swift6-fixes
Draft

Fixes for Swift 6#848
stevenzeck wants to merge 5 commits into
readium:swift6from
stevenzeck:swift6-fixes

Conversation

@stevenzeck

@stevenzeck stevenzeck commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

I'm leaving this in draft as more issues might creep up. Here is what is changed and why:

  1. In AudioNavigator, makePlaybackInfo was wrapping its completion handler in a Task that awaited currentItem.asset.load. Because this fetch suspends the task until the exact duration is returned, the completion handler was delayed. While not an impact for local files, this caused a several second delay for HTTP streaming where the UI would freeze/fail to update.

@stevenzeck stevenzeck changed the base branch from develop to swift6 July 8, 2026 16:07
@stevenzeck

stevenzeck commented Jul 8, 2026

Copy link
Copy Markdown
Contributor Author

I reverted the changes for PublicationOpener for now. If we use NonisolatedNonsendingByDefault, they're not necessary.

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