From 6e8eda4c42311c42e4af1dcf3d9708c84eb40b2e Mon Sep 17 00:00:00 2001 From: Boyko Mihail Date: Mon, 5 Oct 2020 12:41:12 +0300 Subject: [PATCH] cherry-pick 22ba1fb8f7ac3888919e2f4e2616029126ea4f12 --- .../Controllers/BaseOrientationNavigationController.swift | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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