mirror of
https://github.com/UrbanApps/Armchair.git
synced 2026-07-05 04:21:47 +02:00
Conversion to Swift 5
- convert all targets to Swift 5 - bump .swift-version - update podspec - fix warnings
This commit is contained in:
@@ -1723,11 +1723,11 @@ open class Manager : ArmchairManager {
|
||||
private static func getRootViewController() -> UIViewController? {
|
||||
if var window = UIApplication.shared.keyWindow {
|
||||
|
||||
if window.windowLevel != .normal {
|
||||
if window.windowLevel != UIWindow.Level.normal {
|
||||
let windows: NSArray = UIApplication.shared.windows as NSArray
|
||||
for candidateWindow in windows {
|
||||
if let candidateWindow = candidateWindow as? UIWindow {
|
||||
if candidateWindow.windowLevel == .normal {
|
||||
if candidateWindow.windowLevel == UIWindow.Level.normal {
|
||||
window = candidateWindow
|
||||
break
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user