How I didn’t know earlier that spellchecking is available in Xcode since version 11.