Plugin
share_plus
Use case
We're using the share_plus plugin to share one or multiple files after it has been downloaded. After the download of the files we still need to update the UI. But since the NSSharingServicePicker is presented synchronously on the main thread the UI hangs.
Proposal
Show the NSSharingServicePickerasynchronously on the main thread, so that the UI can continue to update.
let picker = NSSharingServicePicker(items: items)
DispatchQueue.main.async {
picker.show(relativeTo: origin, of: view, preferredEdge: NSRectEdge.maxY)
}
Plugin
share_plus
Use case
We're using the
share_plusplugin to share one or multiple files after it has been downloaded. After the download of the files we still need to update the UI. But since theNSSharingServicePickeris presented synchronously on the main thread the UI hangs.Proposal
Show the
NSSharingServicePickerasynchronously on the main thread, so that the UI can continue to update.