name change

This commit is contained in:
Scott Pfeil 2021-10-22 11:28:18 -04:00
parent ff21987c1e
commit 623e8312f2

View File

@ -47,7 +47,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UISplitViewControllerDele
splitViewController.delegate = self
splitViewController.preferredDisplayMode = .allVisible
let gr = UILongPressGestureRecognizer(target: self, action: #selector(pasteAndGo))
let gr = UILongPressGestureRecognizer(target: self, action: #selector(pasteAndPlay))
splitViewController.view.addGestureRecognizer(gr)
NotificationCenter.default.addObserver(forName: UIViewController.showDetailTargetDidChangeNotification, object: splitViewController, queue: nil) { [weak self] (notification) in
@ -63,7 +63,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UISplitViewControllerDele
return true
}
@objc func pasteAndGo(_ sender: UILongPressGestureRecognizer) {
@objc func pasteAndPlay(_ sender: UILongPressGestureRecognizer) {
if sender.state == .ended {
(dvc as? DetailViewController)?.textView.text = UIPasteboard.general.string
(dvc as? DetailViewController)?.play()