From 6ec59cf442d63d3136da752e4ae6755421a6ebd7 Mon Sep 17 00:00:00 2001 From: Arkadiusz Fal Date: Sun, 11 Sep 2022 18:45:43 +0200 Subject: [PATCH] Add tvOS option to disable captions --- Shared/Player/Controls/ControlsOverlay.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Shared/Player/Controls/ControlsOverlay.swift b/Shared/Player/Controls/ControlsOverlay.swift index a87cfe98..c5ac61b0 100644 --- a/Shared/Player/Controls/ControlsOverlay.swift +++ b/Shared/Player/Controls/ControlsOverlay.swift @@ -354,6 +354,8 @@ struct ControlsOverlay: View { .frame(maxWidth: 320) } .contextMenu { + Button("Disabled") { captionsBinding.wrappedValue = nil } + ForEach(player.currentVideo?.captions ?? []) { caption in Button(caption.description) { captionsBinding.wrappedValue = caption } }