damus

nostr ios client
git clone git://jb55.com/damus
Log | Files | Refs | README | LICENSE

commit afec694432c6d294af4f1406a5198f7105d6be90
parent 3c24e707fc9c417d211318aae8437406aff912da
Author: kernelkind <kernelkind@gmail.com>
Date:   Thu,  1 Feb 2024 12:48:34 -0500

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 <kernelkind@gmail.com>
Signed-off-by: William Casarin <jb55@jb55.com>

Diffstat:
Mdamus/Views/TextViewWrapper.swift | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git 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 }