fix: avoid isolated volume setter reabstraction in Swift 6.3.3

This commit is contained in:
2026-10-22 10:23:02 +02:00
parent 419ac8d677
commit 4ac780de2a
3 changed files with 5 additions and 2 deletions
+2 -1
View File
@@ -2480,7 +2480,8 @@ private struct PlayerContent: View {
HStack(spacing: 4) {
iconButton(model.volume == 0 ? "speaker.slash.fill" : "speaker.wave.2.fill",
model.volume == 0 ? "Unmute" : "Mute", action: model.toggleMute)
PlaybackSlider(value: Binding(get: { model.volume }, set: model.setVolume),
// Avoid the actor-isolated method reabstraction implicated in a Swift 6.3.3 IRGen crash.
PlaybackSlider(value: Binding(get: { model.volume }, set: { model.setVolume($0) }),
range: 0...1, volume: true, enabled: model.canSetVolume,
onEditingChanged: model.setControlsDragging)
.frame(width: 70, height: 14)