Add tvOS setting for video click behavior

This commit is contained in:
Arkadiusz Fal
2026-04-16 04:26:48 +02:00
parent fb2db35fe8
commit 9b55ee7127
5 changed files with 78 additions and 1 deletions

View File

@@ -58,7 +58,18 @@ struct TappableVideoModifier: ViewModifier {
func body(content: Content) -> some View {
Button {
dismissKeyboard()
#if os(tvOS)
let tapAction = appEnvironment?.settingsManager.tvOSVideoTapAction ?? .openInfo
if tapAction == .openInfo {
appEnvironment?.navigationCoordinator.navigate(
to: .video(.loaded(video), queueContext: queueContext)
)
} else {
checkPasswordAndPlay()
}
#else
checkPasswordAndPlay()
#endif
} label: {
content
.contentShape(Rectangle())