Free course

Swift Course

Learn Swift fundamentals through values, optionals, control flow, collections, functions, structures, enumerations, classes, and protocols.

5 modules · 25 lessons · No signup

~~~

Your progress

of lessons completed.

Course completed.

What you'll learn

Write small Swift programs and model data deliberately with values, collections, functions, structures, enumerations, classes, and protocols.

Take this course offline

Subscribe to my newsletter to get every free book and course in PDF and EPUB format.

Get the downloads

Course contents

  1. Start with Swift

    Understand the language, constants, variables, Booleans, and number types.

    1. Introduction to the Swift programming language
    2. Swift Variables
    3. Booleans in Swift
    4. Numbers in Swift
    5. Check your understanding: starting with Swift
  2. Values and types

    Work with strings, optionals, tuples, assignment, comparison, and other operators.

    1. Strings in Swift
    2. Swift optionals and nil
    3. Swift Tuples
    4. Swift Operators
    5. Check your understanding: values and types
  3. Control flow

    Make decisions and repeat work with if, switch, for-in, and while.

    1. Swift conditionals: the if statement
    2. Swift conditionals: the switch statement
    3. Swift loops: the for-in loop
    4. Swift loops: the while loop
    5. Check your understanding: control flow
  4. Collections and functions

    Organize values with arrays, sets, dictionaries, and reusable functions.

    1. Arrays in Swift
    2. Swift Sets
    3. Swift Dictionaries
    4. Swift Functions
    5. Check your understanding: collections and functions
  5. Model your program

    Choose structures, enumerations, classes, and protocols for clear program models.

    1. Swift Structures
    2. Swift Enumerations
    3. Swift Classes
    4. Swift Protocols
    5. Check your understanding: modeling a program