Skip to content

Commit 410f53d

Browse files
author
rmotygullin
committed
FixRotation: (Issues During Rotation) is isPortrait remove orientation .portraitUpsideDown
1 parent 7916101 commit 410f53d

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

Sources/ContainerController/ContainerDevice.swift

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import UIKit
1010

1111
@available(iOS 13.0, *)
1212
public extension ContainerDevice {
13-
1413
enum Orientation {
1514
case portrait
1615
case landscapeLeft
@@ -85,7 +84,7 @@ open class ContainerDevice {
8584
switch UIDevice.current.orientation {
8685
case .landscapeLeft, .landscapeRight:
8786
portrait = false
88-
case .portrait, .portraitUpsideDown:
87+
case .portrait:
8988
portrait = true
9089
default: break
9190
}
@@ -120,6 +119,4 @@ open class ContainerDevice {
120119
return .landscapeLeft
121120
}
122121
}
123-
124-
125122
}

0 commit comments

Comments
 (0)