mirror of
https://github.com/yattee/yattee.git
synced 2025-04-26 08:36:29 +00:00
Fix orientation
This commit is contained in:
parent
739ca007e8
commit
a55683e6bf
@ -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) {
|
.onAnimationCompleted(for: viewDragOffset) {
|
||||||
guard !dragGestureState else { return }
|
guard !dragGestureState else { return }
|
||||||
if viewDragOffset == 0 {
|
if viewDragOffset == 0 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user