Swift 3 is out a few days ago and every one is very exited to learn it. Get a jump ahead start on swift 3. Swift is very simple and great language to get started in programming. So, if you have never coded in life before take this course. This is the course that teaches you the step by step process to learn swift 3 as well as to teach you the implementation of swift 3 by designing a few basic apps.
Since now, swift is open source therefore you can be on windows or Linux and can learn to code in swift. All though if you are serious about releasing apps in app store, (and you should be), then getting a Mac is good idea. And these are honest words here. We want to be as transparent as possible with our students.
As by taking a look at the course content you can tell that we have done a great job in covering the topics and as much in detail as possible. But still the course is easy to follow. We are not hobbits in teaching; we are professionals. We have already launched our Boot camps for Ios 10 with Xcode 8.
As the course moves you will get confidence with the language. You will feel that designing apps is not that tough. Also the course content will surely get updated because language is not officially out yet. And image that, when the language will be out, you will already be expert in that. Yep, that a big deal.
Once you are enrolled in the course, you will not get charged for future material added in this course. Already students from all over the globe have trusted in our quality. Within first few lectures, you will realize the quality production that we do.
So, fire up your code editor and let’s write some code.
A detail introduction to the course. About what we will learn in this course and what not to expect from the course.
In this lecture we will learn to download XCode 8. Xcode 8 is the must have and only tool that you will need to write code in swift 3. XCode ships in with swift 3 and no additional installation is required. XCode and MAC are the only requirement to get you started.
Since we will be spending a lot of time in Xcode, it's a good idea that we first take a tour of the platform. It has 3 major section, left side is to organize your files and folders. Middle part is where you write code and sometimes preview the screen too. Right side is dynamic and changes based on the item selected. Usually, most of the properties can be set here.
Instead of designing first hello world app, we will do little better. We will code a simple app that has 2 buttons. By pressing the one button, background will change to blue color and by pressing other one, background will change to red one.
Playground is a quick editor in Xcode that allows you to write quick codes, test with them and learn with them. They are not meant for full application development, but just to have quick processing of the codes.
Variables in swift are created by using var keyword and constants are created using let keyword. Swift guidelines recommend to make constants as much as possible. This makes code more independent and stable. Every data type can be made variable and constant using these two keywords in swift 3
String interpolation is a technique in swift 3, that helps us to replace variable or constant with their respective values. Further we will talk about comments and their major usage while testing a few lines of code.
Type conversion is a must to learn in swift 3. Usually the text that is passed by user is in the form of string and in that case if we want to perform some arithmetic operation, then we need to convert it into Int. Also we will look at aliases, that help us to gives different names with same functionality to various things.
Although, we will revisit the conditionals and loop later, but this quick look will help you to understand a lot of topics like comparison operations and logical operations. Similarly, loops will help you to understand range in swift 3.
Arithmatic operations are the simplest of all of them. It allows you to do simple math in the programming, like addition and multiplication. Similarly, assignment operations helps you to assign values from right hand side to the left hand side element.
Comparison helps us to decide the further flow of the code in swift 3. Comparison gives us either of the two Boolean results, True or False. Further, we will explore two range operation, Inclusive range and Non inclusive range.
Logical operators allow you to test multiple condition at a time. Multiple Boolean values can be evaluated at a time and based on that events can be triggered. For AND operator, all values should be true to get a true result, while for OR operator, any one true value will produce true as an output. While the NOT operator just reverse the Boolean situation
Strings are a character array set. Strings does comes with lots of in built functionality as they are the highly used element in programming. In swift 3, we will learn about string interpolation and many functions that ships in with language.
There are mainly three types of collection in swift 3, we will take arrays first as our discussion. We will learn to declare array, add elements in it and to remove the elements. Indexing is the main strength of the arrays.
Another collection is set. Just like set that you might have studied in high school, these sets also follows the properties like Union, intersection and addition of sets. Let's take a detail look on sets in swift 3
Finally we have dictionary in the collection. The major strength of dictionary in swift 3 is to have flexibility in choice of index. Values are inserted in the dictionary as key value pair. To access any value, we need to pass the key of the value. Same goes with deletion of the value and insertion of the value in dictionary
The most common conditionals are if and else. If code block runs the code if the condition is produced as true and else code block runs on the other case. There is nothing special in IF and ELSE in swift 3 as compared to other programming languages, No surprises at all.
Switch and case are another way to decide on the condition. For a particular element, we can check for various cases and based on the match, we can run some code block. There is no explicit fall through between the cases in the swift 3. Although, it comes with keywords like FALLTHROUGH, if we really want to make that happen.
Moving further in conditionals, for in is the another player here. The traditional C style for loop is gone in swift 3. For in loop are more easy to use in case of range and array like situation. There is a major role of underscore, incase the repeating element is of no use
Moving up next, we have while ad repeat while loops. Repeat while loops are just like Do While loop in C based language but since swift 3 has different meaning for Do as a keyword, they did changed the Do as Repeat. One simply checks the condition at the top and another at the end.
We have five major condition controller keywords. but we will take a look at only three of them, Break, Continue and Fallthrough. Because other two will be discussed later in Function video. Break simply Breaks the flow and throws the flow outside the code block. While continue just ignore one iteration
Just to make things little interesting, we will design a simple app, that calculates the price of the coffee and shows it on the screen. The goal here is not to make app but to show that whatever we are learning here, has an implementation.
In the last movie, we worked on the front end part of the app, now, in this movie, we will write the code the take input from the user. Then we will convert that input into Int from string. Further we will perform some calculation in that input and result will be severed to the user on the screen
For saying, function is just a block of code that can be called many times. But there are tons of working going on inside the function. Lots of details are there in Parameters and return types. We will learn all these details in the movie.
We will solve two major problem in this video. first is to give variation in the input parameters and making our function ready to take any number of arguments. Second, we will take a look at swapping problem. All the function parameters are constants and we will learn to change those values.
Closures are heavily used in entire ios development. It's hard to avoid them. So I have decided that I'll explain it in layman's words first. From the very first release of swift, I can see that students are facing problems in closures but worries are over now. After watching this closure movie, things will get crystal clear for sure.
Sometimes, it's good to limit our own options. Enums allow you to create different cases that you can match and work according to them.
Classes and structures in swift are heavily compared because they do have many similarities. Both can have properties, both can have function etc. In this movie we will take a look at classes and structures and learn to define properties and function in both of them.
A very confusion topic again but again, I have tried to explain this topic in simplest possible words. Optional chaining allows you to handle the condition when variable has NIL value while forced unwrapping will throw an error in case of NIL values.
Extension is a way to extend the working and functionality of existing classes and structures. Most of the time the classes and structure are defined and you just want to use them with little extra functions. Extension helps you to do that. A lot of people compare extension with inheritance too.
Generics means general data type. You can call them empty vessels too. Any data type like Int, Double or String can fit into generics. Arrays and Dictionary uses generics already and this is the reason why you are able to define array of Ints or Strings
A final thanks to all for taking this course
We at Igneus have trained students from IIT's, NIT's and reputed companies. Students from all over the globe have trusted our High quality and affordable trainings from 10+ countries and have opted for our Certification programs.
IGNEUS stands for the Revolutionary and a quality enhanced change that we’ve tried to come up with in the modern world of Internet education. We’ve come up bearing in mind the maximum emphasis on the quality dealing with every new technology which has made us distinguished from the throng at internet. And this revolution of choice will keep continuing. Today IGNEUS Technologies has proudly lifting up the tag of being the world's most trusted provider of myriad of services and training programs aiding constantly in every corner of the globe along with web security aspects, and open source technology.
IGNEUS Technologies Pvt. Ltd is a dream shared and brought up by two computer geniuses to make the society upgraded and aware of the cyber crimes that curb the innocence of environment, thus starting a revolution in favor of cyber security.
Igneus stands for the Revolutionary and a quality enhanced change in every aspect of its touch to internet. Quality dealing with every new technology makes us different from the crowd of internet. The revolution of choice continues. Today Igneus Technologies is the world's most trusted provider of mentioned services and training along with web security aspects, and open source technology.