Browse Source

Updating copy functionality!

pull/101/head
Abhishek 3 years ago
parent
commit
13a13195fb
  1. 10
      Clocker/Panel/ParentPanelController.swift

10
Clocker/Panel/ParentPanelController.swift

@ -759,15 +759,11 @@ class ParentPanelController: NSWindowController {
}
}
@IBAction func shareAction(_ sender: NSButton) {
let promotionText = "Keep track of your friends and colleagues in different timezones using Clocker: appstore.com/mac/clockermenubarworldclock"
guard let url = URL(string: "https://goo.gl/xyLA4j") else {
assertionFailure("Data was unexpectedly nil")
return
}
let servicePicker = NSSharingServicePicker(items: [promotionText, url])
@IBAction func shareAction(_ sender: NSButton) {
let copyAllTimes = retrieveAllTimes()
let servicePicker = NSSharingServicePicker(items: [copyAllTimes])
servicePicker.delegate = self
servicePicker.show(relativeTo: sender.bounds,

Loading…
Cancel
Save