iOS: Fix sending plain text

This commit is contained in:
Leon Böttger committed 2025-08-18 13:46:26 +02:00
1 parent c56c536574
commit 894af06891
3 files changed
+40 -37

No files matched your search

+4 -1
View File
@@ -24,7 +24,10 @@ func loadAttachments(with extensionContext: NSExtensionContext?, loadedItems: @e
let item = extensionContext.inputItems[0] as! NSExtensionItem
if let attachments = item.attachments {
if let text = item.attributedContentText?.string, attachments.isEmpty {
if let text = item.attributedContentText?.string {
log("Found text content: \(text)")
result.textToSend = text
#if os(macOS)