Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

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.