How to observe calendar changes by using NotificationCenter.messages(of: for:)?

Overview

  • I would like to observe calendar changes using NotificationCenter.messages(of: for:)
  • I want receive Sendable messages, not traditional Notification which is not Sendable

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?
How to observe calendar changes by using NotificationCenter.messages(of: for:)?
 
 
Q