Fix orientation

This commit is contained in:
Arkadiusz Fal 2023-05-21 13:40:44 +02:00
parent 739ca007e8
commit a55683e6bf

View File

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