Skip to content

Instantly share code, notes, and snippets.

@phatblat
Created December 3, 2015 05:37
Show Gist options
  • Select an option

  • Save phatblat/26dfb8a2e813b3fdfab7 to your computer and use it in GitHub Desktop.

Select an option

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

phatblat commented Dec 3, 2015

Copy link
Copy Markdown
Author

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