mirror of
https://github.com/leonboe1/QuickDrop.git
synced 2026-11-20 05:16:02 +00:00
iOS: Fix sending plain text
This commit is contained in:
1 parent
c56c536574
commit
894af06891
3 files changed
+40
-37
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user