Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import Combine
- extension Notification.Name {
- static let newBlogPost = Notification.Name("new_blog_post")
- }
- struct BlogPost {
- let title: String
- let url: URL
- }
- let blogPostPublisher = NotificationCenter.Publisher(center: .default, name: .newBlogPost, object: nil)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement