
Learn Swift fundamentals—from variables to functions, enumerations, and structures—using Xcode on your Mac, and get started with coding.
Create a Swift playground, print outputs to the console, and learn the difference between constants and variables: constants cannot be reassigned, while variables can change.
Explore the four variable types in Swift: integer, boolean, string, and double, with keywords int, bool, string, and double, and learn how integers differ from doubles.
Declare a variable with var, initialize it as an integer to 10, and update it to 20 and 30. Perform addition, division, and multiplication on integers and print the results.
Booleans in Swift represent true or false values, and you can create a boolean variable like myBool set to true, while assigning 10 causes an error.
Learn to work with the Swift strings data type, create and print string variables, concatenate strings, interpolate variables in strings, and declare string constants.
Learn how doubles in Swift represent decimal numbers, differentiate them from integers, and handle type mismatches when adding integers to doubles, while updating with decimals and converting integers to doubles.
Explore optionals in Swift, learning how variables can hold a value or nil with an optional type. Use the question mark to declare optionals and understand nil in assignments.
Learn how to use basic operators in Swift, including the assignment operator, addition, subtraction, multiplication, division, and the increment operator (plus plus), with examples using integers and variables.
Explore arrays and dictionaries as the two main collection types that hold multiple objects. Learn how arrays store values and how dictionary keys access those definitions.
Learn how to use arrays in Swift, including creating string arrays, accessing by index starting at 0, appending, removing, inserting, editing elements, and making empty typed arrays.
Explore dictionaries in Swift by comparing them to arrays, using string and int keys, accessing, updating, removing entries, and creating blank dictionaries.
Learn how tuples group multiple values into a single compound value of different types, with indexing and named forms; see trumpet examples and a web error to illustrate usage.
Discover advanced operators in Swift, including comparison operators, the range operator, and logical operators. Use equal, not equal, greater than, less than, and, or, and not to control flow.
Master conditional logic in Swift by exploring if, else, and else if statements, using variables, comparison operators, and print actions. Build a foundation for loops in the next video.
For loops in Swift execute a set of statements while a condition is met, using initialization, a condition, and an increment, as i starts at 0 and prints ten times.
Explore the for loop in Swift by iterating over ranges expressed with three dots, arrays, and strings, printing values like hello or characters using for in to process each item.
Discover how the while loop in Swift runs a block while a condition is true, often updating a value, and contrast it with do-while which checks after execution.
Explore how the switch statement in Swift compares a value to cases and prints the matching block, with a default path for unmatched values.
learn how to declare and call swift functions, pass parameters, return values, and print results, with examples of my function, two parameters, string concatenation, and middle name usage.
Learn how to define enumerations in Swift, add cases and raw values, and use a switch statement to handle internet speed examples.
Explore Swift structures with struct to define a user info type including first name, last name, age, and height, then access fields via dot notation to create multiple users.
Explore closures in Swift, the simplest form of a code block. Learn to define anonymous functions with curly braces, assign them to variables, and pass them as function parameters.
Do you want to learn to develop apps for iPhone, Apple Watch, and Mac?
Great! you have come to the right place. To develop applications for these devices, you are going to have to understand the Swift programming language by Apple.
This course will help you understand all you need to know to program in the simplistic language Swift, and give you a boost to start your iOS and Mac OS X development career. This is a very simple and effective course on learning the Swift programming language.
Who is this course made for?
This course is for anyone wanting to learn swift and having little to no programming experience, or an Objective-C developer who would like to understand and learn the Swift syntax.
Throughout this course you will go from understanding basic programming terms such as Variables and Data Types to complex concepts such as Classes and Functions.
Certificate of Completion
All Students who complete this course will receive a Free digital certificate of completion from Udemy.
Money Back Guaranteed
If in any way you are not satisfied with my course, feel free to request a refund!