Posts

Post not yet marked as solved
0 Replies
368 Views
I need to observe the .PKPassLibraryDidChange and .PKPassLibraryRemotePaymentPassesDidChange notifications that are specified in https://developer.apple.com/documentation/passkit/pkpasslibrarynotificationnameHowever they are not a subclass of NSNotification.Name so thelet 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?
Posted
by MarkHim.
Last updated
.