mirror of
https://github.com/yattee/yattee.git
synced 2026-06-26 08:34:19 +00:00
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:
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user