Created
December 31, 2016 03:27
-
-
Save wh1pch81n/75d262f5d132ab63037dcca4236c0505 to your computer and use it in GitHub Desktop.
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
// 1 | |
var buttonNotification = SwiftyNotification<String, String, Int>() | |
// 2 | |
buttonNotification.add(subscriber: self) { (info, n) in | |
// 3 | |
print(info) | |
// 4 | |
n = 8 | |
} | |
// 5 | |
let a = buttonNotification.broadcastNotification(with: ["hello": "world"]) | |
print(a) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment