mirror of
https://github.com/yattee/yattee.git
synced 2026-05-14 19:35:02 +00:00
Add tvOS setting for video click behavior
This commit is contained in:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user