mirror of
https://github.com/yattee/yattee.git
synced 2024-12-22 13:33:42 +00:00
Fix browser controls bar on macOS
This commit is contained in:
parent
11984400fd
commit
6f62f14adf
@ -38,13 +38,16 @@ struct BrowserPlayerControls<Content: View, Toolbar: View>: 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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user