Overview
- I would like to observe calendar changes using
NotificationCenter.messages(of: for:) - I want receive
Sendablemessages, not traditionalNotificationwhich is notSendable
Problem
- I can't seem to get the following code to compile
import EventKit
NotificationCenter.default.messages(
of: EKEventStore.EventStoreChanged.Subject.self,
for: .changed
)
Reference
Questions
- How can I use by using
NotificationCenter.messages(of: for:)for Calendar changes?