This commit is contained in:
Arkadiusz Fal 2022-09-24 13:57:33 +02:00
parent a7a3e0827d
commit 3273032ffb

View File

@ -901,7 +901,7 @@ final class PlayerModel: ObservableObject {
#if os(iOS) #if os(iOS)
if !playingFullScreen { if !playingFullScreen {
playingFullScreen = true playingFullScreen = true
Orientation.lockOrientation(.allButUpsideDown, andRotateTo: OrientationTracker.shared.currentInterfaceOrientation) Orientation.lockOrientation(.allButUpsideDown)
} else { } else {
let rotationOrientation = rotateToPortraitOnExitFullScreen ? UIInterfaceOrientation.portrait : nil let rotationOrientation = rotateToPortraitOnExitFullScreen ? UIInterfaceOrientation.portrait : nil
Orientation.lockOrientation(.allButUpsideDown, andRotateTo: rotationOrientation) Orientation.lockOrientation(.allButUpsideDown, andRotateTo: rotationOrientation)