Apple introduced a new programming language for IOS and OS X developers called Swift. Our Swift tutorial for iOS developers & beginners is a simplified best tutorial for learning swift from basics and gives the clear understanding of apple’s Swift language. Despite the new name, Swift is compatible with the root of its predecessors like C, Objective-C, and Cocoa Touch framework.If you have been programming with Objective-C, learning Swift would be a breeze as it has inherited a number of syntaxes that you may already have been familiar with. And if learning Swift is on your to-do list but you haven’t started yet, We are providing simplified tutorials for learning Swift
We will update this tutorial regularly to add/modify contents. Please visit regularly.
There are few options to have hands on.
We have to download and install Xcode 8. Once you have installed it, open and select File from the
menu -> New -> Select Source
on the left under either iOS or OS X -> Playground. Give your playground name. That’s it, you are ready to get started.
If we have two or more versions of Xcode installed then you will need to select Xcode 6 and above as our default version. If we are using Xcode 6 and above only, then skip this step and ahead to step 3, otherwise go ahead and run the following line:
sudo xcode-select -s /Applications/Xcode6-Beta.app/Contents/Developer/
Please check your app name in the “Applications” folder to write out the appropriate path when using xcode-select.
3. To start the REPL type:
3. Online compiler for learning Swift
Go to the below site, it has an online compiler for swift.