Technically yes, because the program where we write Swift code and design the app is a MacOS app and Apple hasn’t released a Windows equivalent. Two solutions you can try instead of buying a Mac: Use a Mac remotely via MacInCloud.com. If you’re technical enough, use virtualization software such as VMWare Workstation and VirtualBox to run.
Fill in the Project and Application names, and then enter a package name for the app. This package will not only become the top-level Java package for your source files, but also provides a unique identifier for your app. No two apps can have the same package identifier installed on the phone at the same time.