New playback settings sheet

This commit is contained in:
Arkadiusz Fal
2022-12-21 21:16:47 +01:00
parent c01ff56854
commit 809bcd183a
14 changed files with 520 additions and 41 deletions

View File

@@ -119,7 +119,11 @@ struct VideoActions: View {
case .settings:
actionButton("Settings", systemImage: "gear") {
withAnimation(ControlOverlaysModel.animation) {
ControlOverlaysModel.shared.show()
#if os(tvOS)
ControlOverlaysModel.shared.show()
#else
navigation.presentingPlaybackSettings = true
#endif
}
}
case .next:

View File

@@ -207,7 +207,7 @@ struct VideoDetails: View {
.zIndex(1)
#if !os(tvOS)
if #available(iOS 15, macOS 12, *) {
if #available(iOS 16, macOS 13, *) {
Rectangle()
.fill(
LinearGradient(