Swift Tutorial
Welcome to Swift Tutorial. In this series of Swift Tutorials, you will learn all the basics of Swift programming language with detailed examples.
Introduction to Swift
- Swift is a new programming language developed by Apple Inc.
- Swift is used to develop applications for iOS and OS X.
Pre-requisites for Swift Tutorial
This Swift Tutorial is targeted for beginners. So, every topic shall be explained in detail. You will find it better if you know basic programming concepts or any other programming language.
Swift Tutorials
In this Swift Tutorial series, we shall go through the following topics.
Get Started
Swift Basic Tutorials
These basic Swift Tutorials gets you introduced with the datatypes available in Swift, how to declare variables, constants, etc, what are the keywords available in swift, and operators like logical, arithmetic, boolean, etc.
Some how-tos..
- How to create an Integer variable in Swift?
- How to create a String variable in Swift?
- How to get Type of variable in Swift?
Swift Datatypes
The following Swift Tutorials deal with each of the datatype in Swift separately with examples.
Swift Operators
The following Swift Tutorials deal with each of the operator in Swift separately with examples.
Swift Decision Making Tutorials
The decision making statements are those that execute a block of statements based on the evaluation of an expression (or condition).
Swift Loops Tutorials
Looping statements help to execute a set of statements repeatedly based on the evaluation of a condition. Also, there are loop control statements like break and continue to break a loop abruptly and continue with the other statements or skip the execution of statements for an iteration.
- Swift for loop
- Swift while loop
- Swift repeat while loop
- Swift continue
- Swift break
- Swift forEach
- Swift forEach – break
Swift Keywords
Swift Input-Output
- Swift – Read User Input from Console
- Swift – Read Number from Console
- Swift – Print to Console Output
Swift Printing
Swift Strings Tutorials
Strings are the basic data types that one uses for most of the real-time applications. Following series of Swift Tutorials help you on how to work with Strings in Swift, how to find the length of a string, how to check if two strings are equal, how to convert a string to integer or vice-versa, and other useful string operations.
Swift Array Tutorials
Arrays store like kind of elements in a sequential manner and can be accessed using a single variable name and of-course the index. Following Swift Tutorials deal with how to work with Arrays in Swift, starting from initialization and proceeding with different operations like printing, checking, appending, removing elements from the array.
Swift Set Tutorials
Sets are collection of items that are stored not necessarily in sequential manner.
Swift Dictionary Tutorials
Other Useful Swift Tutorials
Swift Error Handling
- Swift error: return from initializer without initializing all stored properties
- Swift – struct error: missing argument labels in call