You are correct. You don't need Xcode for all the code you write for Apple's platforms. You need it to build and link to Apple libraries or the App Store, but you can edit code elsewhere.
You can compile and link without XCode too. Apple just makes it annoying to do so, and the documentation frequently says the equivalent of "just use XCode".
But this has nothing to do with actually editing your code; the majority of the iOS code I write and compile does not depend on Xcode or any of its utilities.