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) { if(playback.shouldPlay) {
LoadingViewNoBlur(isShowing: $shouldShowLoadingView) { LoadingViewNoBlur(isShowing: $shouldShowLoadingView) {
VLCPlayerWithControls(item: playback.itemToPlay, loadBinding: $shouldShowLoadingView, pBinding: _playback.projectedValue.shouldPlay) VLCPlayerWithControls(item: playback.itemToPlay, loadBinding: $shouldShowLoadingView, pBinding: _playback.projectedValue.shouldPlay)
.navigationBarHidden(true) }.navigationBarHidden(true)
.navigationBarBackButtonHidden(true) .navigationBarBackButtonHidden(true)
.statusBar(hidden: true) .statusBar(hidden: true)
.prefersHomeIndicatorAutoHidden(true) .prefersHomeIndicatorAutoHidden(true)
.preferredColorScheme(.dark) .preferredColorScheme(.dark)
.edgesIgnoringSafeArea(.all) .edgesIgnoringSafeArea(.all)
.overrideViewPreference(.unspecified) .overrideViewPreference(.unspecified)
.supportedOrientations(.landscape) .supportedOrientations(.landscape)
}
} else { } else {
Group { Group {
if(item.Type == "Movie") { if(item.Type == "Movie") {