
Explore the Swift programming language, its Apple origins and native use for iPhone, iPad, Mac, Apple TV, and Apple Watch, its open-source history, server-side applications, and installing Xcode.
Open a new Xcode playground and write your first Swift line with print to display text in the debug area. Use lowercase with double quotes and parentheses for valid syntax.
Declare variables in Swift with the var keyword and assignment operator, then use length to calculate area and perimeter of a square and show that a variable value can change.
Declare a variable x with 7 and show Swift infers it as Int, by type(of:). Reassign 5, but 3.5 triggers a compiler error, proving the type is fixed after declaration.
Learn how to name variables and constants using descriptive lowerCamelCase with allowed characters like Unicode and underscores, allow numbers but not as first character, avoid whitespace, and limit emoji usage.
Define data type as the set of values and operations, describing the kind of data. Learn about Swift’s built-in data types for numbers, strings, and booleans.
Explore Swift's arithmetic operators, including addition, subtraction, multiplication, division, and modulo, and see how 7 modulo 3 equals 1, with operators applicable to all number types.
Learn to control flow with if, else if, and else in Swift by checking conditions, executing code when true, using else if for additional checks, and else for remaining cases.
Define a function as a reusable block of code that prints text. Declare it with the func keyword, name it sayHi, and call it with parentheses to run 'Hi there!'.
Discover how to define and call a Swift function with an input parameter, using oddOrEven to determine and print whether a number is even or odd.
Explore how optionals in Swift represent absence of a value by wrapping a value or nil in a box, for any data type, and unwrap before use.
This course will teach you how to write code in Swift programming language.
You don’t need to have any prior programming experience. We will start from the very beginning and teach you the basic concepts of programming.
This course has lots of code examples.
There are quizzes associated with the lessons. By taking the quizzes, you will have a clear conception about the lessons.
Programming is a never-ending skill that you need to develop. You can learn programming at any age. You just need to focus on learning and then keep practicing what you learn. Your age or existing skill level doesn’t matter. With practice, you can be a good programmer.
This course is for complete beginners to programming. We will start by guiding you through the steps necessary to write your first line of Swift code. To write Swift code, we need Xcode. So we will show you how to install Xcode. Then you will be introduced to concepts like variables, constants, data types, operators, conditionals, loops, functions, arrays, dictionaries, optionals, structs and more. All the code in the course works inside of Xcode’s easy-to-use playgrounds.
Swift was developed by Apple and was first introduced at Apple's 2014 Worldwide Developers Conference. Swift is primarily used for building apps on Apple platforms. It’s the native language to build apps for iPhone, iPad, Mac, Apple TV and Apple Watch. Swift version 2.2 was made open-source in December 2015.
If you want to build native apps for Apple platforms, then Swift is the language you would use. Swift is also being used for building server side applications. Swift is easy to learn and friendly to new programmers. It’s a safe, fast, and interactive programming language.