Created
January 20, 2022 12:32
-
-
Save max6363/d0c79429e4fab10f1cdf4fe3d32faeb6 to your computer and use it in GitHub Desktop.
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
extension Notification.Name { | |
static let newEvent = Notification.Name("new_event") | |
} | |
struct Event { | |
let title: String | |
let scheduledOn: Date | |
} | |
let eventPublisher = NotificationCenter.Publisher(center: .default, name: .newEvent, object: nil) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment