From afec694432c6d294af4f1406a5198f7105d6be90 Mon Sep 17 00:00:00 2001 From: kernelkind Date: Thu, 1 Feb 2024 12:48:34 -0500 Subject: [PATCH] post: disable inline text prediction Inline text suggestions interfere with mentions generation so they should be disabled. Closes: https://github.com/damus-io/damus/issues/1970 Lightning-address: kernelkind@getalby.com Signed-off-by: kernelkind Signed-off-by: William Casarin --- damus/Views/TextViewWrapper.swift | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/damus/Views/TextViewWrapper.swift b/damus/Views/TextViewWrapper.swift index 4a305bc4..c3ea615f 100644 --- a/damus/Views/TextViewWrapper.swift +++ b/damus/Views/TextViewWrapper.swift @@ -28,6 +28,10 @@ struct TextViewWrapper: UIViewRepresentable { textView.setContentCompressionResistancePriority(.defaultLow, for: .horizontal) textView.setContentCompressionResistancePriority(.required, for: .vertical) + if #available(iOS 17.0, *) { + textView.inlinePredictionType = .no + } + TextViewWrapper.setTextProperties(textView) return textView }