This commit is contained in:
Boyko Mihail 2020-10-05 12:41:12 +03:00
parent 198eaecf96
commit 6e8eda4c42
1 changed files with 2 additions and 3 deletions

View File

@ -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