
Introduction to course : Swift
How to setup Xcode 6 and first look of playground.
Introduction to Swift constants and variables
How a variable and constant type is declared.
Swift convention for naming variables and constants.
This lecture will show how to print string, use comment and semicolons;
Learn about integers in Swift, including signed and unsigned types, their zero and negative ranges, and how 8, 16, 32, and 64 bit sizes influence type behavior and inference.
Swift has a strict type safety management system. There will be compile time error if type mis matches in variable or constant while assigning value.
There are four types of numeric literals: decimal, binary, octal, hexadecimal.
It is possible to convert any type of numeric literal to a different type of numeric literal in Swift.
Type aliases introduce a new name for an existing type, enabling a max file size alias on a 64-bit platform and easy swapping of int with unsigned int.
Swift has Boolean type bool for variable and constant.
Explore swift tuples, a non-homogeneous value group useful for returning from functions. Access by index, decompose into name and age, and destructure while skipping missing values.
In Swift any variable or constant can be declared as optionals. It means it may have value or it may not. Let's see in the lecture.
Assign a optional value and check for existence at the same time in optional binding.
nil in Swift is bit different than in Objective-C
It is just another way of declaring optional variable which can not be nil after declaration.
Assertions check for condition and continue execution if it is true.
Assignment operator (=) sets value to constant or variable.
Normal arithmetic operators in Swift covers addition, subtraction, multiplication, division.
Remainder operator (%) in Swift is almost similar to C. Let's see the difference.
Increment (++), decrement (--) operator modifies single variable.
Compound assignment operator combines assignment with another operation.
Comparison operator compares variables and returns Boolean value: True or False
Ternary operator has three parts and let's see in our lecture how it works.
Range operator contains range value inclusive or half inclusively.
Explore how logical not reverses boolean values, how logical and requires both true, and how logical or yields true if any true; use parentheses to control evaluation order.
String contains encoding independent Unicode characters
Declare an empty string in swift using string literals or a string initializer. Assign it to a variable and print whether it is empty or has a value using isEmpty.
Explore how to compare strings in Swift with three methods: equality, prefix equality, and suffix equality, including case sensitivity and practical examples.
Discover how to convert strings to uppercase or lowercase in Swift using straightforward functions. Explore examples that show lowercased and uppercased results on a sample string.
There are two types of collection types in Swift: Array and Dictionary.
There are two ways to declare an array.
This lecture contains how to access array value, modify value, append value and remove a value.
for-in or enumerate can be used to iterate over an array.
It's easy to declare and initialize an Array with default value in Swift.
Dictionary contains unordered list of key, value pairs.
Dictionary can be declared with literal with a pair of key, value item.
Learn how to access, modify, and delete dictionary entries in swift by using count, add and update values for keys, and safely handle missing keys with optionals.
Explore mutability in Swift by comparing arrays and dictionaries under variable and constant assignments. Learn that constant arrays cannot change size, constant dictionaries cannot change values, while variables can mutate.
Master the for condition increment loop by learning its initialization, condition, and increment parts, converting from for-in loops, and applying practical examples and exercises.
Learn how to use Swift's switch statement to match values with multiple cases, ranges, and a default, without breaks, and apply it to grades, parity, and exhaustive patterns.
Apple has brought new programming language this june, 2014. Out of no where Apple declared Swift. It's innovative language for both Cocoa and Cocoa Touch. The fun part is interactive coding. It's a type safe language. Swift code can run besides Objective-C.
Swift cares lot of things automatically. If you already have a bit of experience from C, C++, PHP or Javascript, you already know a bit of Swift programming. This course will show those feature and pretty cool features of Swift.
As it is a new language, it is the right time to start right away. If you have developer license, you can download Xcode 6. By the time, I am making this tutorial, Apple has released Xcode 6 beta version. It will be possible to learn Swift without Xcode, cause these courses will show all code and output side by side. Courses come up with quizzes. So, you can practice always what you have learned. The more you practice, the more experience you will get. So why wait, let's dive in!!
This course will cover basics of Swift, operators, strings, collection types, control flow and functions. All of these has pretty cool features.
Finally, any kind of feedback is very much welcome. It is your input which will make this course more attractive. If you need any explanation, feel free to contact always.