Skip to content

Commit

Permalink
Merge pull request #12 from stNamco/master
Browse files Browse the repository at this point in the history
remove deprecated property
  • Loading branch information
mshrwtnb committed Jul 7, 2019
2 parents 8dc2e98 + d0c35fa commit 0204f6a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ALRT/ALRT.swift
Expand Up @@ -280,6 +280,9 @@ private extension UIViewController {

private extension UIApplication {
func topMostViewController() -> UIViewController? {
return self.keyWindow?.rootViewController?.topMostViewController()
guard let keyWindow = windows.last else {
return nil
}
return keyWindow.rootViewController?.topMostViewController()
}
}

0 comments on commit 0204f6a

Please sign in to comment.