Created
July 5, 2019 11:05
-
-
Save WildStudio/7d8c77a9b41590d8f225769e5a0debac to your computer and use it in GitHub Desktop.
Combine: Creating a Publisher
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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