Skip to content

Instantly share code, notes, and snippets.

@phatblat
Created December 3, 2015 05:37
Show Gist options
  • Save phatblat/26dfb8a2e813b3fdfab7 to your computer and use it in GitHub Desktop.
Save phatblat/26dfb8a2e813b3fdfab7 to your computer and use it in GitHub Desktop.
Extending postNotificationName to take an enum
extension NSNotificationCenter {
func postNotificationName(notification: Notifications, object: NSObject?) {
postNotificationName(notification.rawValue, object: object)
}
}
@phatblat
Copy link
Author

phatblat commented Dec 3, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment