Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
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
You can’t perform that action at this time.