orientation bug

This commit is contained in:
Aiden Vigue 2021-05-28 17:20:54 -04:00
parent 6bfd0c4fc6
commit 58a39eb11f
No known key found for this signature in database
GPG Key ID: E7570472648F4544
1 changed files with 8 additions and 9 deletions

View File

@ -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") {