Skip to content

[Request]: Show NSSharingServicePicker asynchronously on main thread #1177

@leonx98

Description

@leonx98

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)
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    HacktoberfestIssues taking part in HacktoberfestenhancementNew feature or requestiosshare_plusFeature, Enhancement, Bug Fixes for Share Plus Plugin

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions