Remove redundant center transport controls on tvOS

Siri Remote already handles play/pause and seeking natively, so the
on-screen skip/play/pause cluster was duplicate UI. Initial and
restored focus now targets the progress bar.
This commit is contained in:
Arkadiusz Fal
2026-04-14 17:41:58 +02:00
parent c7942ef555
commit 0d5a733b0b
2 changed files with 2 additions and 97 deletions

View File

@@ -11,9 +11,6 @@ import SwiftUI
/// Focus targets for tvOS player controls navigation.
enum TVPlayerFocusTarget: Hashable {
case background // For capturing events when controls hidden
case skipBackward
case playPause
case skipForward
case progressBar
case settingsButton
case infoButton
@@ -225,7 +222,7 @@ struct TVPlayerView: View {
}
.onAppear {
startControlsTimer()
focusedControl = .playPause
focusedControl = .progressBar
}
.onDisappear {
stopControlsTimer()
@@ -354,7 +351,7 @@ struct TVPlayerView: View {
controlsVisible = true
}
if focusedControl == .background || focusedControl == nil {
focusedControl = .playPause
focusedControl = .progressBar
}
startControlsTimer()
}