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 (retired) Variables and Constants Xcode

Can swift only be used for iOS development?

Can you use Swift for android development too?

4 Answers

Tom Bedford
Tom Bedford
15,645 Points

Hi Prithvee, you can only use Swift to code Mac and iOS apps. It was created by Apple for coding apps for their platforms.

Many programming languages have overlapping concepts so learning any language will help you understand some of the behaviour of others even if the exact syntax is different.

No ,done by apple for their products and platforms only.....

James Dale
James Dale
3,412 Points

No, the language was only designed for iOS and Mac but there is something called 'Silver' which let's you use it on Andriod and Windows, take a look here. http://www.elementscompiler.com/elements/silver/default.aspx

Hope this helped :)