Quick answerNo Linux version
No. Apple does not make Xcode for Linux; Visual Studio Code is the closest Linux alternative.
Some Windows programs run under Wine or Bottles, but results vary by version. Check the WineHQ application database before relying on it.
Best Xcode alternatives for Linux
Sources
Xcode on Linux: common questions
Does Xcode work on Linux?
No. Apple does not make Xcode for Linux; Visual Studio Code is the closest Linux alternative.
What is the best Linux alternative to Xcode?
Visual Studio Code is the closest alternative that runs on Linux. Visual Studio Code: Microsoft publishes an official Linux version of Visual Studio Code. It’s on Flathub (4.5M installs) and in the Arch Linux repositories.