Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

iOS Swift Basics An Introduction to Swift Programming What Is Swift?

How to code Swift on Windows 10?

I am just starting to learn Swift and planning on making an app for iOS. As I learned from the Video, I can't code Swift on Windows. Is there a way around it or anything to help?

1 Answer

Thomas Dobson
Thomas Dobson
7,511 Points

Swift is open source, and as such there are some ported compilers out there for windows. There is some unofficial Visual Studio support out there too, but nothing worth mentioning IMHO.

While you can learn the fundamentals of swift on windows with various compilers or use perhaps an online compiler such as IMB, if you truly want to develop for iOS, MacOS, tvOS, and the like... you are going to want to buy a mac.