Change protection level to open

This commit is contained in:
Boyko Mihail 2020-10-05 12:41:12 +03:00
parent e1ba5e5788
commit 22ba1fb8f7
3 changed files with 6 additions and 4 deletions

View File

@ -1,5 +1,8 @@
# Changelog
### 0.10.9
- **Fix**: `change presentedOrTopViewController to open`.
### 0.10.8
- **Fix**: `Add presentedOrTopViewController`.

View File

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

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