From 2853a70720ace76451b99661647dbd63209228e2 Mon Sep 17 00:00:00 2001 From: Hermann R <133643030+hrandriamanantena@users.noreply.github.com> Date: Tue, 5 Mar 2024 20:37:02 +0300 Subject: [PATCH] quickfix crash on mac when paste something in editor --- Aztec/Classes/TextKit/TextView.swift | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Aztec/Classes/TextKit/TextView.swift b/Aztec/Classes/TextKit/TextView.swift index e4e0404bf..daeeebbab 100644 --- a/Aztec/Classes/TextKit/TextView.swift +++ b/Aztec/Classes/TextKit/TextView.swift @@ -510,10 +510,14 @@ open class TextView: UITextView { } open override func paste(_ sender: Any?) { + #if targetEnvironment(macCatalyst) + super.paste(sender) + #else guard pasteboardDelegate.tryPasting(in: self) else { super.paste(sender) return } + #endif } @objc open func pasteWithoutFormatting(_ sender: Any?) {