Browse Source

Update ParentPanelController.swift

pull/101/head
Abhishek 3 years ago
parent
commit
5ff2ae01ab
  1. 7
      Clocker/Panel/ParentPanelController.swift

7
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<String> = Set(["Messages", "Notes"])
return proposed.filter { service in
allowedServices.contains(service.title)
}
}
}

Loading…
Cancel
Save