Skip to content

Format for SwiftFormat 0.64 - #1174

Closed
pblazej wants to merge 3 commits into
mainfrom
blaze/swiftformat-0.64-v2
Closed

pblazej wants to merge 3 commits into
mainfrom
blaze/swiftformat-0.64-v2

Conversation

@pblazej

@pblazej pblazej commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

This PR reformats the repo for SwiftFormat 0.64 and disables sortImports, because its new import order breaks the @preconcurrency import AVFoundation build in two files.

pblazej and others added 3 commits October 26, 2026 09:53
Co-authored-by: omnigent <noreply@omnigent.ai>
Co-authored-by: omnigent <noreply@omnigent.ai>
SwiftFormat 0.64 enables sortImports by default. It merges the separate
`internal import LiveKitWebRTC` group into the main import block and
sorts access-scoped imports first. In
Sources/LiveKit/Protocols/AudioRenderer.swift and
Sources/LiveKit/Protocols/AudioCustomProcessingDelegate.swift that
places `internal import LiveKitWebRTC` above
`@preconcurrency import AVFoundation`. LiveKitWebRTC re-exports
AVFoundation, so the module is first imported without
`@preconcurrency` and the attribute no longer suppresses the
AVAudioPCMBuffer Sendable capture errors, which breaks the build.

Co-authored-by: omnigent <noreply@omnigent.ai>
@pblazej

pblazej commented Oct 26, 2026

Copy link
Copy Markdown
Contributor Author

Superseded by #1175 (same change rebased onto a new branch; force-push was not possible).

@pblazej pblazej closed this Oct 26, 2026
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