Skip to content

Commit ff34f54

Browse files
committed
Add computed window property to all ApplicationService
1 parent e03cd1e commit ff34f54

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

PluggableApplicationDelegate/Classes/ApplicationServicesManager.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@ import CloudKit
1313
/// It doesn't add more functionalities yet.
1414
public protocol ApplicationService: UIApplicationDelegate {}
1515

16+
extension ApplicationService {
17+
public var window: UIWindow? {
18+
return UIApplication.shared.delegate?.window ?? nil
19+
}
20+
}
21+
1622
open class PluggableApplicationDelegate: UIResponder, UIApplicationDelegate {
1723

1824
public var window: UIWindow?

0 commit comments

Comments
 (0)