diff --git a/Sources/Classes/Controllers/BaseOrientationNavigationController.swift b/Sources/Classes/Controllers/BaseOrientationNavigationController.swift index 9b9280a0..353af80f 100644 --- a/Sources/Classes/Controllers/BaseOrientationNavigationController.swift +++ b/Sources/Classes/Controllers/BaseOrientationNavigationController.swift @@ -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