From 58a39eb11fbdbb21cdf3007018495a2b5da92f9d Mon Sep 17 00:00:00 2001 From: Aiden Vigue Date: Fri, 28 May 2021 17:20:54 -0400 Subject: [PATCH] orientation bug --- JellyfinPlayer/ItemView.swift | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/JellyfinPlayer/ItemView.swift b/JellyfinPlayer/ItemView.swift index b4a8e26a..7db2aa44 100644 --- a/JellyfinPlayer/ItemView.swift +++ b/JellyfinPlayer/ItemView.swift @@ -26,15 +26,14 @@ struct ItemView: View { if(playback.shouldPlay) { LoadingViewNoBlur(isShowing: $shouldShowLoadingView) { VLCPlayerWithControls(item: playback.itemToPlay, loadBinding: $shouldShowLoadingView, pBinding: _playback.projectedValue.shouldPlay) - .navigationBarHidden(true) - .navigationBarBackButtonHidden(true) - .statusBar(hidden: true) - .prefersHomeIndicatorAutoHidden(true) - .preferredColorScheme(.dark) - .edgesIgnoringSafeArea(.all) - .overrideViewPreference(.unspecified) - .supportedOrientations(.landscape) - } + }.navigationBarHidden(true) + .navigationBarBackButtonHidden(true) + .statusBar(hidden: true) + .prefersHomeIndicatorAutoHidden(true) + .preferredColorScheme(.dark) + .edgesIgnoringSafeArea(.all) + .overrideViewPreference(.unspecified) + .supportedOrientations(.landscape) } else { Group { if(item.Type == "Movie") {