fix: avoid isolated volume setter reabstraction in Swift 6.3.3
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user