File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -9,19 +9,19 @@ import AppKit
99struct TestHelper {
1010 static func data( _ length : Int ) -> Data {
1111 let buffer = [ UInt8] ( repeating: 0 , count: length)
12- return Data ( bytes : buffer)
12+ return Data ( buffer)
1313 }
1414
1515 static func triggerApplicationEvents( ) {
1616 #if (iOS)
1717 NotificationCenter . default. post ( name: UIApplication . didEnterBackgroundNotification, object: nil )
1818 NotificationCenter . default. post ( name: UIApplication . willTerminateNotification, object: nil )
1919 #elseif os(tvOS)
20- NotificationCenter . default. post ( name: Notification . Name . UIApplicationDidEnterBackground , object: nil )
21- NotificationCenter . default. post ( name: Notification . Name . UIApplicationWillTerminate , object: nil )
20+ NotificationCenter . default. post ( name: UIApplication . didEnterBackgroundNotification , object: nil )
21+ NotificationCenter . default. post ( name: UIApplication . willTerminateNotification , object: nil )
2222 #else
23- NotificationCenter . default. post ( name: NSApplication . willTerminateNotification, object: nil )
24- NotificationCenter . default. post ( name: NSApplication . didResignActiveNotification, object: nil )
23+ NotificationCenter . default. post ( name: NSApplication . willTerminateNotification, object: nil )
24+ NotificationCenter . default. post ( name: NSApplication . didResignActiveNotification, object: nil )
2525 #endif
2626 }
2727}
You can’t perform that action at this time.
0 commit comments