fix rotated

This commit is contained in:
mrustaa committed 2020-06-11 01:14:43 +03:00
1 parent 6d7e1a010b
commit ad9dfd7f5a
2 files changed
+13 -11

No files matched your search

@@ -108,6 +108,10 @@ class MapsViewController: StoryboardController, MapsContainerControllerDelegate,
// MARK: - Rotation Callback
@objc func rotated() {
let orint = UIDevice.current.orientation
if orint == .faceUp || orint == .faceDown || orint == .portraitUpsideDown { return }
updateMapViewTopPadding()
}