From 6f62f14adf712de6480734c14e4a1ee6c5e7ae0d Mon Sep 17 00:00:00 2001 From: Arkadiusz Fal Date: Thu, 30 Jun 2022 22:18:59 +0200 Subject: [PATCH] Fix browser controls bar on macOS --- Shared/Views/BrowserPlayerControls.swift | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/Shared/Views/BrowserPlayerControls.swift b/Shared/Views/BrowserPlayerControls.swift index 1983e3ac..a00eef2c 100644 --- a/Shared/Views/BrowserPlayerControls.swift +++ b/Shared/Views/BrowserPlayerControls.swift @@ -38,13 +38,16 @@ struct BrowserPlayerControls: View { content .frame(maxHeight: .infinity) - #if os(iOS) + #if !os(tvOS) VStack(spacing: 0) { - toolbar - .frame(height: 35) - .frame(maxWidth: .infinity) - .borderTop(height: 0.4, color: Color("ControlsBorderColor")) - .modifier(ControlBackgroundModifier()) + #if os(iOS) + toolbar + .frame(height: 35) + .frame(maxWidth: .infinity) + .borderTop(height: 0.4, color: Color("ControlsBorderColor")) + .modifier(ControlBackgroundModifier()) + #endif + ControlsBar(fullScreen: .constant(false)) .edgesIgnoringSafeArea(.bottom) }