Created
April 4, 2019 08:48
-
-
Save 4np/85c115b805a97e2189266d20c8c2a593 to your computer and use it in GitHub Desktop.
Debug notification center notifications.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Foundation | |
import os.log | |
NotificationCenter.default.addObserver(forName: nil, object: nil, queue: nil) { (notification) in | |
os_log("Received notification: %@", log: .default, type: .debug, notification.name.rawValue) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment