diff --git a/CHANGELOG.md b/CHANGELOG.md index 47c364811..1a629dec1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] ### Release Notes +- Disable autocorrect on NoteComposer when running on macOS. [#1460](https://github.com/planetary-social/nos/issues/1460) ### Internal Changes - Temporarily remove Martin from the list of CODEOWNERS. diff --git a/Nos/Views/NoteComposer/NoteUITextViewRepresentable.swift b/Nos/Views/NoteComposer/NoteUITextViewRepresentable.swift index 569a26bc5..ce36d4cb9 100644 --- a/Nos/Views/NoteComposer/NoteUITextViewRepresentable.swift +++ b/Nos/Views/NoteComposer/NoteUITextViewRepresentable.swift @@ -47,6 +47,10 @@ extension NoteTextEditor { .foregroundColor: UIColor.primaryTxt ] + if ProcessInfo.processInfo.isiOSAppOnMac { + view.autocorrectionType = .no + } + if showKeyboard { Task { try await Task.sleep(for: .milliseconds(200))