Fix browser controls bar on macOS

This commit is contained in:
Arkadiusz Fal 2022-06-30 22:18:59 +02:00
parent 11984400fd
commit 6f62f14adf

View File

@ -38,13 +38,16 @@ struct BrowserPlayerControls<Content: View, Toolbar: View>: View {
content content
.frame(maxHeight: .infinity) .frame(maxHeight: .infinity)
#if os(iOS) #if !os(tvOS)
VStack(spacing: 0) { VStack(spacing: 0) {
#if os(iOS)
toolbar toolbar
.frame(height: 35) .frame(height: 35)
.frame(maxWidth: .infinity) .frame(maxWidth: .infinity)
.borderTop(height: 0.4, color: Color("ControlsBorderColor")) .borderTop(height: 0.4, color: Color("ControlsBorderColor"))
.modifier(ControlBackgroundModifier()) .modifier(ControlBackgroundModifier())
#endif
ControlsBar(fullScreen: .constant(false)) ControlsBar(fullScreen: .constant(false))
.edgesIgnoringSafeArea(.bottom) .edgesIgnoringSafeArea(.bottom)
} }