Skip to content

Commit

Permalink
Merge pull request #1543 from planetary-social/bdm/1460-mac-autocorrect
Browse files Browse the repository at this point in the history
disable autocorrect on NoteComposer when running on macOS #1460
  • Loading branch information
bryanmontz authored Sep 26, 2024
2 parents f126402 + e06131e commit 75bafa2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 4 additions & 0 deletions Nos/Views/NoteComposer/NoteUITextViewRepresentable.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 75bafa2

Please sign in to comment.