From f2e31de99b68c0ede5e45672ae579b8b3159772a Mon Sep 17 00:00:00 2001 From: Apurva Chitnis <10189197+apuchitnis@users.noreply.github.com> Date: Mon, 24 Jul 2023 15:47:40 -0400 Subject: [PATCH] Copy from strings in clipboard instead of string. --- clipboard/ios/Plugin/Clipboard.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/clipboard/ios/Plugin/Clipboard.swift b/clipboard/ios/Plugin/Clipboard.swift index 45c80cb3d..0f328cde3 100644 --- a/clipboard/ios/Plugin/Clipboard.swift +++ b/clipboard/ios/Plugin/Clipboard.swift @@ -46,9 +46,9 @@ public class Clipboard { } func read() -> [String: Any] { - if let stringValue = UIPasteboard.general.string { + if let strings = UIPasteboard.general.strings { return [ - "value": stringValue, + "value": strings.joined(separator: "\n"), "type": "text/plain" ] }