mirror of
https://github.com/yattee/yattee.git
synced 2025-10-10 17:38:15 +00:00
fix double rotation
Signed-off-by: Toni Förster <toni.foerster@gmail.com>
This commit is contained in:
@@ -211,7 +211,7 @@ struct YatteeApp: App {
|
||||
let rotationOrientation =
|
||||
OrientationTracker.shared.currentDeviceOrientation.rawValue == 4 ? UIInterfaceOrientation.landscapeRight :
|
||||
(OrientationTracker.shared.currentDeviceOrientation.rawValue == 3 ? UIInterfaceOrientation.landscapeLeft : UIInterfaceOrientation.portrait)
|
||||
Orientation.lockOrientation(.allButUpsideDown, andRotateTo: rotationOrientation)
|
||||
Orientation.lockOrientation(.all, andRotateTo: rotationOrientation)
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user