mirror of
https://github.com/yattee/yattee.git
synced 2025-08-09 20:24:06 +00:00
Browser player bar as overlay
This commit is contained in:
@@ -16,7 +16,7 @@ struct AppTabNavigation: View {
|
||||
|
||||
var body: some View {
|
||||
TabView(selection: navigation.tabSelectionBinding) {
|
||||
let tabs = Group {
|
||||
Group {
|
||||
if showHome {
|
||||
homeNavigationView
|
||||
}
|
||||
@@ -45,13 +45,7 @@ struct AppTabNavigation: View {
|
||||
searchNavigationView
|
||||
}
|
||||
}
|
||||
|
||||
if #available(iOS 16, tvOS 16, *) {
|
||||
tabs
|
||||
.toolbar(accounts.isEmpty ? .hidden : .visible, for: .tabBar)
|
||||
} else {
|
||||
tabs
|
||||
}
|
||||
.overlay(ControlsBar(fullScreen: .constant(false)), alignment: .bottom)
|
||||
}
|
||||
|
||||
.id(accounts.current?.id ?? "")
|
||||
@@ -196,3 +190,9 @@ struct AppTabNavigation: View {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
struct AppTabNavigation_Preview: PreviewProvider {
|
||||
static var previews: some View {
|
||||
AppTabNavigation()
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user