How to subscribe to PKPassLibraryNotificationName

I need to observe the .PKPassLibraryDidChange and .PKPassLibraryRemotePaymentPassesDidChange notifications that are specified in https://developer.apple.com/documentation/passkit/pkpasslibrarynotificationname


However they are not a subclass of NSNotification.Name so the



let observer = NotificationCenter.default.addObserver(forName: PKPassLibraryNotificationName.PKPassLibraryDidChange, object: nil, queue: nil) { notification in
     ...
}

doesn't compile.


Is there any additional import needed to be able to observe `PKPassLibraryNotificationName` on the NotificationCenter?

How to subscribe to PKPassLibraryNotificationName
 
 
Q