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:
committed by
William Casarin
parent
3c24e707fc
commit
afec694432
@@ -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