From 5ff2ae01ab5e48b9e4a1d1495f2f4670667c139f Mon Sep 17 00:00:00 2001 From: Abhishek Date: Thu, 1 Jul 2021 21:30:52 -0500 Subject: [PATCH] Update ParentPanelController.swift --- Clocker/Panel/ParentPanelController.swift | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Clocker/Panel/ParentPanelController.swift b/Clocker/Panel/ParentPanelController.swift index 4c08da7..d6ad916 100644 --- a/Clocker/Panel/ParentPanelController.swift +++ b/Clocker/Panel/ParentPanelController.swift @@ -1075,4 +1075,11 @@ extension ParentPanelController: NSSharingServicePickerDelegate { for: "Sharing Service Executed") return self as? NSSharingServiceDelegate } + + func sharingServicePicker(_: NSSharingServicePicker, sharingServicesForItems _: [Any], proposedSharingServices proposed: [NSSharingService]) -> [NSSharingService] { + let allowedServices: Set = Set(["Messages", "Notes"]) + return proposed.filter { service in + allowedServices.contains(service.title) + } + } }