Skip to content

Instantly share code, notes, and snippets.

@WildStudio
Created July 5, 2019 11:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save WildStudio/7d8c77a9b41590d8f225769e5a0debac to your computer and use it in GitHub Desktop.
Save WildStudio/7d8c77a9b41590d8f225769e5a0debac to your computer and use it in GitHub Desktop.
Combine: Creating a Publisher
import Combine
extension Notification.Name {
static let upadateLabel = Notification.Name("updateLabel")
}
struct Data {
let title: String
}
let publisher = NotificationCenter.Publisher(center: .default, name: .upadateLabel, object: nil)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment