Swift 101

Swift… the programming language that allows us to create all those beautiful applications that we use on our iPhones, iPads or even MacBooks. The most likely reason that you have landed here, is that you are planing to invest the time to learn to develop your own iOS applications.

However keep in mind that starting to learn something for the first time can be challenging… Feeling frustrated when we are confronted to new terms or language, can be demotivating sometimes but that is totally normal… You have already taken the first good decision in starting to develop yourself and teach yourself how to code, so there is no reason for you to change that decision at the first obstacle… So just take your time and learn very well all the basics that are presented here and you will start coding in no time… If you push through, you will reach your goals and targets.

So, enough with the small talk, let’s get down to business.

The first thing you need to do, in order to start your journey is to install xCode on your MacBook, which can be found as usual in you App Store (it’s free)!

Screen Shot 2017-04-13 at 22.12.40.png

Once you have installed the software, let’s start and create a new Xcode project that I will name it Swift101, you can name yours however you want. For the platform, we will keep the iOS.

Screen Shot 2017-04-13 at 22.15.29.png

Next, you will be asked where you want to save your playground. Chose the folder that you want and then you will enter in the swift’s playground.

Screen Shot 2017-04-13 at 22.18.07.png

If you feel a bit lost and don’t know what to do next and what everything is, don’t worry too much, it is normal, everything will become very familiar afterwards.We will see gradually all the elements so you won’t feel bombarded with a lot of new information…

So, the first 2 things you need to know for now is that the playground is composed of 2 blocks as shown in the image here below

Screen Shot 2017-04-13 at 22.18.07.png

So the first zone (in red), is where all the “action” is happening. Here is where you will write your code.

The second zone (in green) is the area that will show you the output of your code, as you can see it with the default code that is written when you have created the playground.

So now that you successfully installed xCode, created a playground and have a grasp knowledge of the areas, let’s continue and move to Swift 102 and learn the basics.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Blog at WordPress.com.

Up ↑

%d bloggers like this: