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>
This commit is contained in:
1 parent
3c24e707fc
commit
afec694432
1 file changed
+4
@@ -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
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user