diff --git a/CHANGELOG.md b/CHANGELOG.md index 632e8802..80043749 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ # Changelog +### 0.10.9 +- **Fix**: `change presentedOrTopViewController to open`. + ### 0.10.8 - **Fix**: `Add presentedOrTopViewController`. diff --git a/LeadKit.podspec b/LeadKit.podspec index 249062dd..8da751f4 100644 --- a/LeadKit.podspec +++ b/LeadKit.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = "LeadKit" - s.version = "0.10.8" + s.version = "0.10.9" s.summary = "iOS framework with a bunch of tools for rapid development" s.homepage = "https://github.com/TouchInstinct/LeadKit" s.license = "Apache License, Version 2.0" 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