From 67e2ff5ce56f27023f0281f904f4e2599b08f738 Mon Sep 17 00:00:00 2001 From: Duraid Abdul Date: Sat, 22 May 2021 14:47:17 -0700 Subject: [PATCH] Update LCManager.swift --- Sources/LocalConsole/LCManager.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/LocalConsole/LCManager.swift b/Sources/LocalConsole/LCManager.swift index fb53bed..60dbdcd 100644 --- a/Sources/LocalConsole/LCManager.swift +++ b/Sources/LocalConsole/LCManager.swift @@ -239,7 +239,7 @@ public class LCManager: NSObject, UIGestureRecognizerDelegate { } /// Copy the console view text to the device's clipboard. - public func copyToClipboard() { + public func copy() { UIPasteboard.general.string = consoleTextView.text } @@ -315,7 +315,7 @@ public class LCManager: NSObject, UIGestureRecognizerDelegate { let copy = UIAction(title: "Copy", image: UIImage(systemName: "doc.on.doc"), handler: { _ in - self.copyToClipboard() + self.copy() }) let resize = UIAction(title: "Resize Console",