mirror of
https://github.com/yattee/yattee.git
synced 2025-08-09 20:24:06 +00:00
Allow swipe down to open controls settings on tvOS
This commit is contained in:
@@ -142,8 +142,14 @@ struct PlayerControls: View {
|
||||
}
|
||||
}
|
||||
#if os(tvOS)
|
||||
.onReceive(model.reporter) { _ in
|
||||
model.show()
|
||||
.onReceive(model.reporter) { value in
|
||||
if value == "swipe down", !model.presentingControls, !model.presentingOverlays {
|
||||
withAnimation(Self.animation) {
|
||||
model.presentingControlsOverlay = true
|
||||
}
|
||||
} else {
|
||||
model.show()
|
||||
}
|
||||
model.resetTimer()
|
||||
}
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user