mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 21:33:26 +00:00
Workaround for #1786 - Disable auto correction when running on the Mac
This commit is contained in:
+6
@@ -79,6 +79,12 @@ private struct UITextViewWrapper: UIViewRepresentable {
|
||||
textView.textContainer.lineFragmentPadding = 0.0
|
||||
textView.textContainerInset = .zero
|
||||
textView.keyboardType = .default
|
||||
|
||||
// AutoCorrection doesn't work properly when running on the Mac
|
||||
// https://github.com/element-hq/element-x-ios/issues/1786
|
||||
if ProcessInfo.processInfo.isiOSAppOnMac {
|
||||
textView.autocorrectionType = .no
|
||||
}
|
||||
|
||||
textView.setContentCompressionResistancePriority(.defaultLow, for: .horizontal)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user