I wonder, how many claiming preference for VS Code vs Xcode (yes, it is spelled like this) have actually used Xcode, not only heard about it.
Xcode has a nicer, more robust UI and I like it for that. I actually like that I don't have to configure every last thing via some text file. However, the syntax highlighting/autocomplete/language support seems to crash or slow down far too often. It's just one (or two) built in languages, not 3 different plugin LSPs running on the same file like VSCode, so it really should be better, not much worse.
By now I would assume many people have at least once tried to build an app for iOS in one way or another. And it's easy to see why people prefer VSC which has a pretty classic UI for an IDE / editor, whereas Xcode tries to do so many things differently without good reason.