Conversion to Swift 5

- convert all targets to Swift 5
- bump .swift-version
- update podspec
- fix warnings
This commit is contained in:
weak
2019-09-19 10:47:04 +02:00
parent b22a605285
commit 51eca2a931
8 changed files with 48 additions and 17 deletions
+2 -2
View File
@@ -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
}