cherry-pick 22ba1fb8f7
This commit is contained in:
parent
198eaecf96
commit
6e8eda4c42
|
|
@ -3,12 +3,11 @@ import UIKit
|
|||
open class OrientationNavigationController: UINavigationController {
|
||||
|
||||
// MARK: - Public properties
|
||||
|
||||
var presentedOrTopViewController: UIViewController? {
|
||||
|
||||
open var presentedOrTopViewController: UIViewController? {
|
||||
presentedViewController ?? topViewController
|
||||
}
|
||||
|
||||
|
||||
open override var shouldAutorotate: Bool {
|
||||
presentedOrTopViewController?.shouldAutorotate
|
||||
?? super.shouldAutorotate
|
||||
|
|
|
|||
Loading…
Reference in New Issue