From a55683e6bfc66410e6d6dadbd026432896c7084a Mon Sep 17 00:00:00 2001 From: Arkadiusz Fal Date: Sun, 21 May 2023 13:40:44 +0200 Subject: [PATCH] Fix orientation --- Shared/Player/VideoPlayerView.swift | 7 ------- 1 file changed, 7 deletions(-) diff --git a/Shared/Player/VideoPlayerView.swift b/Shared/Player/VideoPlayerView.swift index e2807f73..52d0b925 100644 --- a/Shared/Player/VideoPlayerView.swift +++ b/Shared/Player/VideoPlayerView.swift @@ -140,13 +140,6 @@ struct VideoPlayerView: View { } } } - .onReceive(NotificationCenter.default.publisher(for: UIDevice.orientationDidChangeNotification)) { _ in - guard player.lockedOrientation.isNil else { - return - } - - Orientation.lockOrientation(.allButUpsideDown, andRotateTo: OrientationTracker.shared.currentInterfaceOrientation) - } .onAnimationCompleted(for: viewDragOffset) { guard !dragGestureState else { return } if viewDragOffset == 0 {