-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathUIScene.swift
23 lines (17 loc) · 1.05 KB
/
UIScene.swift
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#if os(iOS) || os(visionOS) || os(tvOS) || targetEnvironment(macCatalyst)
import UIKit
extension UIScene {
@Notification(name: UIScene.willConnectNotification)
public static var willConnectTypedNotification: TypedNotificationDefinition<Void, UIScene>
@Notification(name: UIScene.didActivateNotification)
public static var didActivateTypedNotification: TypedNotificationDefinition<Void, UIScene>
@Notification(name: UIScene.didDisconnectNotification)
public static var didDisconnectTypedNotification: TypedNotificationDefinition<Void, UIScene>
@Notification(name: UIScene.willEnterForegroundNotification)
public static var willEnterForegroundTypedNotification: TypedNotificationDefinition<Void, UIScene>
@Notification(name: UIScene.willDeactivateNotification)
public static var willDeactivateTypedNotification: TypedNotificationDefinition<Void, UIScene>
@Notification(name: UIScene.didEnterBackgroundNotification)
public static var didEnterBackgroundTypedNotification: TypedNotificationDefinition<Void, UIScene>
}
#endif