SwiftUI TextEditor on Mac, spell check weirdness

I think I'm misunderstanding something here, maybe someone could point me in the right direction.

In System Settings, "Correct spelling automatically" is DISABLED, along with all the other options that ruin what you're typing.

In TextEdit, it continues to highlight spelling and grammar mistakes, so does Mail, Safari and others.

Yet SwiftUI made apps, don't. I can right-click, enable "Check Spelling while typing", but after typing a few characters, words, it becomes disabled again.

I've busted through the view hierarchy to get the hosted NSTextView and overridden "isContinuousSpellCheckingEnabled" but something frequently reverts this to false.

Is my only option to have a large TextEditor with spell checking (but not auto correction) to create my own version of TextEditor by hosting the NSTextView myself. That's a lot of work for something which seems wrong, when I'm hoping that I'm simply missing something here.

Xcode 15.2 on macOS 13.5.

You're right! I didn't even notice this, but it's also happening in our app, and I just made a clean sample project that also has this problem. It's obviously a bug somewhere in SwiftUI, of which there are many. :(

You should file a bug report, and I'll do the same.

SwiftUI TextEditor on Mac, spell check weirdness
 
 
Q