
Download and install Xcode on your Mac from the App Store, using command-space to search, and learn what this Swift Essentials course covers.
Learn four goals: you can program, gain solid Swift knowledge, become a problem solver, and have fun building apps for Apple platforms with transferable skills to Java, Ruby, and C#.
Explore the history of Swift, from its solo start in 2010 to its 2014 reveal, its beginner-friendly design, and its role in building apps for Apple platforms.
Open Xcode and create a playground to learn Swift, write your first line print("Hello world"), and run it in the console to see output.
Organize each course section as a separate playground and store them in a dedicated Swift folder to revisit variables, while personalizing Xcode fonts and templates like dusk or presentation.
Learn to create your first variable in Swift using var, see how a variable holds information from x to 8 and my age to 26, and note case sensitivity.
Learn how variables in Swift can change over time, with examples of numbers and strings, and understand why a variable's type stays fixed.
Explore constants and variables in Swift using let to declare constants, with hands-on examples like my age and dog, and learn how constants differ from variables.
Learn the difference between constants and variables in Swift, use let for constants, var for variables, and default to let unless a change is required.
Learn how emojis and Unicode enable emoji-based variable and constant names in Swift, and use the control-command-space keyboard shortcut to insert emojis, expanding naming options for global programmers.
This Swift challenge asks you to create a variable age set to your name, change it to negative 100, and define a constant named my name set to your name.
Declare a variable age with var and a name variable, set age to 26, then to negative 100, then create a constant with let as you prepare for strings next.
Explore strings and numbers in Swift, building on variables and constants, with clear explanations that strings mean text and numbers, and introduce switches.
Explore Swift strings by creating variables and constants, using quotes, concatenating with spaces, and transforming text with lowercase and uppercase operations to manage text in apps.
Explore integers in Swift by using variables and constants to perform addition, subtraction, multiplication, and division with whole numbers, and learn how reassignment changes values like ages or oranges.
Demonstrate embedding variables into a string with interpolation, using a dog's name and age to create a dynamic sentence that updates when values change.
Learn how Swift handles decimal numbers by comparing floats and doubles, and when to use each. Explore type annotations, strings, and the guidance to favor doubles for decimals in Xcode.
Learn how to mix ints and doubles in swift by converting values with Double(...) and Int(...), ensuring same types for arithmetic, and exploring float and double interactions.
Create a string variable and an int variable, build a string constant using interpolation to include them, then update values and perform division with a double and an int.
Learn how to declare and interpolate Swift variables, including string and int vars, and constants with let, then combine them with string interpolation to form dynamic messages.
Learn how to add comments in your code and print text to the console to observe program flow and debug effectively.
Discover how to create single line comments in Swift with two forward slashes, use comments to annotate code and leave to-dos without affecting execution.
Learn how to use Swift multi-line comments and single-line comments, when to apply them, and how to comment out code with practical examples.
Explore how print outputs text and variables to the console in Swift, with strings and simple examples in playgrounds.
Complete a Swift coding challenge: write a funny single line comment, create a coherent multi-line comment, and implement a single print statement that doubles a string.
Learn Swift basics by crafting single line and multi-line comments, and printing strings with age and rating using doubles in one print statement for clear, maintainable code.
Learn how booleans and if statements let you make decisions in your code, bringing your programs to life, with strings, doubles, and growing logic.
Explore booleans and if statements in Swift, learn the boolean type with true or false, and practice with a live example in a new playground.
Learn how if statements use booleans to decide when code runs in swift, with true/false logic, curly braces, and practical examples like a wallet scenario.
Explore if and else conditionals in Swift using a wallet example, showing nested else and else-if logic and how to print outcomes based on available money.
Explore how to use and and or in if statements to evaluate booleans, compare values, and control flow with curly braces in Swift.
Construct a four-part Swift challenge by creating a true boolean, a false constant, and an age constant, then use if statements with and/or to print adult or minor.
Create boolean variables and constants in Swift, then use if statements to compare age to 18 and combine conditions with or.
Explore switches and their relation to if statements, and learn when to use if versus switch to control code execution.
Explore the switch statement in Swift by comparing it with if statements, using grade examples from A to F, including a default case, to improve readability and code clarity.
Learn how the default clause works in a switch and when to include it for strings, numbers, and booleans. Use booleans to see when a default is required.
Explore using a Swift switch with multiple matches to classify a letter as vowel or consonant, using comma-separated cases and a shared code block.
Explore interval matching with switch statements in Swift, using range cases to categorize chicken counts from one to thousands and understand how ranges determine which case runs.
Develop and test switch statements in Swift by building a double-constant switch with at least three cases and a default, then create another switch using interval matching and multiple matches.
Explore arrays as lists that hold typed items, create and modify string and int arrays, and see how ordered items like names or artists populate apps and reflect real-world lists.
Learn how to add items to arrays in Swift using append, and understand that arrays must hold a single type, enforced by type annotations.
Learn how count reveals how many items are in an array, with ages and names, and see how Xcode playground shows the return type as you add or remove elements.
Explore how arrays function as ordered lists, access elements by zero-based positions using brackets, and use first, last, and count to retrieve specific items.
Learn to remove and insert elements in arrays using remove at index, remove first, remove last, and insert at a specific index, with zero-based counting explained.
Explore how the contains method checks for an element in an array, returns a boolean, and how to use it with if statements in Swift with strings and numbers.
Tackle a six-step swift array challenge by creating a 10-element array, appending to it, declaring a count constant, accessing the fourth item, removing last, and checking for the value 8.
Create and mutate a 10-element Swift array, choosing let or var, append values, count items, and access the fourth element by index three; remove last and check for 8.
Explore how Swift dictionaries use keys and values to look up data, differ from arrays because they are not ordered, and resemble a real dictionary for quick lookups and storage.
Explore swift dictionaries by mapping keys to values with real-life examples like dog ages and word definitions, and learn that keys are one type and values are another.
Learn how type annotations define dictionary keys and values, using strings for keys and ints or doubles for values. See how to create empty dictionaries with type notation.
Learn to add and edit entries in a Swift dictionary using dog name keys and age values, and note dictionaries are unordered with unique, case sensitive keys.
tackle the dictionary challenge by creating a swift dictionary with double keys and boolean values, then update, add, remove, count entries, and empty it to reinforce learning.
Walk through building and manipulating a dictionary with double keys and boolean values, updating entries, adding and removing items, counting entries, and comparing dictionaries to arrays.
Explore sets as a collection type alongside arrays and dictionaries, noting their similarities and differences to understand the full collection type family.
Learn how to insert and remove elements in a Swift set, preserving uniqueness; the set grows with new values and ignores duplicates, while removing non-existent items yields nil.
Explore sorting elements inside a set by converting to a string array and achieving alphabetical order. Learn that sorting returns a string array and can handle numeric examples.
Explore the contains function in sets, returning a boolean to check presence of items like Frank or 8, and note that sets store unique elements with no guaranteed order.
Explore set operations in Swift 2.1, including intersect, exclusive or, union, and subtract, with practical examples using odd digits, even digits, and single digit prime numbers.
Practice essential set operations in Swift: create a set, add and remove elements, sort the set, check if the set contains 8 and 6, and join two sets into one.
Build a set of numbers in Swift, showing mutability, adding and removing elements, and sorting while duplicates disappear. Also learn to check containment and union two sets to combine values.
Explore loops to make your code run a chunk of instructions repeatedly, unlocking power in Swift. See a personal example and learn how looping can multiply your program's actions.
Master for loops in Swift to run a code block multiple times, using a range such as 1 through 5 and curly brackets to define the loop body.
Explore how for loops track the current loop index in Swift, naming the index k and using print to display values in a range (1–5, then 3–5) and compute squares.
Learn how for loops work with arrays by iterating over names to print each current name, and explore using dictionaries with loops to process data.
Learn how while loops differ from if statements, using booleans to control code that repeats until a condition becomes false, with an age example and cautions about infinite loops.
Explore repeat-while loops in Swift, showing how code runs before the condition is checked, and contrast this with while loops using age-based examples.
Tackle hands-on Swift basics with loop challenges: print a hamster emoji 100 times, double array elements, print dictionary keys and values, and track iterations to reach ten thousand.
Explore swift loops by printing a hamster emoji 100 times with a for loop, iterating arrays and dictionaries, and using a while loop with underscore separators to count iterations.
Course updated December 2015!
Become one of the world's earliest Swift developers with this introductory course on Apple’s new programming language.
A Modern Language Evolved from Objective C
Swift is a multi-paradigm programming language developed by Apple for use with iOS and OS X. Designed to replace Objective C, work began on Swift in 2010 and the first mobile app was debuted in June 2014 at the Worldwide Developers Conference. Despite its goal of replacing Objective C, Swift is capable of working alongside the more dated Objective C language while using the Cocoa and Cocoa Touch frameworks.
Swift is built with the LLVM compiler included in Xcode 6 beta, and uses the Objective-C runtime, allowing Objective-C, Objective-C++ and Swift code to run within a single program. During it’s debut, Swift was described as “Objective C without the C” by Apple’s VP of Software Engineering Craig Federighi.
Contents and Overview
Through 140+ video lectures and 11 hours of content, you will be lead through setting up Swift locally, the basics of the language, how it compares to other common languages (including Objective C), and how to get started on new projects.
The course is designed to provide a comprehensive introduction to Swift, so that you can begin experimenting right away. Upon completion, you will understand the foundations of Swift code and will be able to develop custom applications. You will also get experience working with Xcode's new .playground file. By enrolling in this course you will be months ahead of other developers attempting learn the new Swift programming language by navigating Apple's 500-page instructional document.
Course material is regularly refreshed to include all of the newest updates and information, and since you’re granted lifetime access upon registering, you can rely on this course to keep your Swift skills on the cutting edge.