Last active
November 11, 2020 16:46
-
-
Save shakemno/ec558de9dd12e2700e51cf000976d777 to your computer and use it in GitHub Desktop.
Get all NotificationCenter events (example using ReactiveSwift) #debug
This file contains 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
NotificationCenter | |
.default.reactive.notifications(forName: nil, object: nil) | |
.take(duringLifetimeOf: self) | |
.observeValues { (note) in | |
print("👻 \(note.description)") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment