Fix toolbar tabs

This commit is contained in:
Arkadiusz Fal
2022-11-18 22:22:57 +01:00
parent c31a5ee2e0
commit 414b6210c0
5 changed files with 29 additions and 14 deletions

View File

@@ -30,6 +30,7 @@ struct VideoPlayerView: View {
@State private var playerSize: CGSize = .zero { didSet { updateSidebarQueue() } }
@State private var hoveringPlayer = false
@State private var detailsPage = VideoDetails.DetailsPage.queue
@State private var fullScreenDetails = false
@State private var sidebarQueue = defaultSidebarQueueValue
@@ -339,7 +340,7 @@ struct VideoPlayerView: View {
#if !os(tvOS)
if !fullScreenPlayer {
VideoDetails(sidebarQueue: $sidebarQueue, fullScreen: $fullScreenDetails, bottomPadding: detailsNeedBottomPadding)
VideoDetails(page: $detailsPage, sidebarQueue: $sidebarQueue, fullScreen: $fullScreenDetails, bottomPadding: detailsNeedBottomPadding)
#if os(iOS)
.ignoresSafeArea(.all, edges: .bottom)
#endif