Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
let center = NotificationCenter.default
let notificationReceived = Notification.Name("notificationReceived")
let pizzas = ["Margherita": 1, "Pepperoni": 16, "Hawaii": 25]
center.post(name: notificationReceived, object: self, userInfo: pizzas)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.