The reason they say this is because of Xcode (an IDE which is only available for MacOS ).
But, I want to install Xcode 6 and more specifically Swift. Developed by Apple, this software enables you to create programs and apps for the macOS, iOS, iPadOS, watchOS, and tvOS. In this example, I am changing the project name from “iPhone Piano” to “iPhone ElectricPiano.” Older versions of Xcode can be found by logging into the Apple Developer Downloads page and searching for the version of Xcode you need.
The current version of Xcode can be accessed either through the App store, or the Xcode downloads page.