Skip to content

Commit

Permalink
Fixed a bug that prevented Sharing from the On My Mac account
Browse files Browse the repository at this point in the history
  • Loading branch information
vincode-io committed Dec 16, 2024
1 parent 473ddac commit 613cc48
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions Zavala/DocumentsActivityItemsConfiguration.swift
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,10 @@ extension DocumentsActivityItemsConfiguration: UIActivityItemsConfigurationReadi
let itemProviders: [NSItemProvider] = selectedDocuments.compactMap { document in
let itemProvider = NSItemProvider()

let data = document.formattedPlainText.data(using: .utf8)

itemProvider.registerDataRepresentation(forTypeIdentifier: UTType.utf8PlainText.identifier, visibility: .all) { completion in
Task { @MainActor in
let data = document.formattedPlainText.data(using: .utf8)
completion(data, nil)
}
completion(data, nil)
return nil
}

Expand Down

0 comments on commit 613cc48

Please sign in to comment.