Learn Swift Programming Syntax (Udacity)

Offered by Udacity,
Learn Swift Programming Syntax (Udacity)

From Optionals to Closure Expressions. Swift is a language created by Apple specifically for iOS and OS X development. It’s fast, concise, and comes with tools which make it easier than ever to visualize one's code. This course focuses on the syntax of the Swift programming language. By the end of the course, students should be able to apply Swift essentials to building iOS apps and employ Swift's more unique elements, like optional types and switch statements, with confidence.

Class Deals by MOOC List - Click here and see Udacity's Active Discounts, Deals, and Promo Codes.

Why Take This Course

  • A quick and fun introduction to Swift basics.
  • Practice with Playground exercises
  • Thorough explanations of Swift's less-intuitive features like Optionals and Closure Expressions.

What You Will Learn

Lesson 1
Swift Basics

  • An introduction to Swift types and operators.
  • Develop deftness in defining variables and constants.
  • Practice what you've learned with exercises in Swift playgrounds.

Lesson 2
Optional Types

  • Declare explicitly and implicitly unwrapped optionals.
  • Unwrap optionals using both optional binding and optional chaining.
  • Practice safely unwrapping optionals and learn to avoid errors.

Lesson 3
Swift Collections

  • Learn about the Swift Collection Types: Dictionaries
  • Arrays and Sets.
  • Perform basic operations including: append

count
insert
remove
update
find
and retrieve.

  • Practice manipulating collections with exercises in Swift playgrounds.

Lesson 4
Control Flow: Loops, If statements, and Switches

  • Practice fast iteration with for-in loops by iterating through items in Arrays and Dictionaries.
  • Create programming logic of increasing complexity with if-else statements.
  • Delight in the convenience and conciseness of Swift switch statements.

Lesson 5
How to Write and Call Functions in Swift

  • Define and call functions.
  • Correctly use local and external parameters.
  • Identify parameter types and return types.

Lesson 6
Classes, Properties, and Methods

  • Practice building custom classes with their own properties and methods.
  • Learn about type properties and computed properties.
  • See example use cases for type methods and instance methods.

Lesson 7
Enums and Structs

  • Learn the difference between value types and references types.
  • Practice choosing when to use enums structs and classes.
  • Use enums to make your switch statements extra Swifty.

Lesson 8
Protocols and Extensions

  • Learn how protocols and extensions can help keep your code DRY.
  • Given a series of code snippets fix compiler errors by implementing protocols.
  • Edit the code in a sample app to see extensions in action.

Lesson 9
Closure Expressions

  • Practice using Swift closures with the functions sorted() and filter().
  • Learn shorthand closure expression syntax to make your closures super concise.

Prerequisites and Requirements
This course assumes prior programming experience! Specifically, you should be familiar with programming concepts like variables, if statements, and loops, as well as object-oriented concepts like methods and classes. You will also need access to a Mac computer running OS X 10.10 or later.

Go to Class
MOOC List is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

Related Courses

Intro to iOS App Development with Swift (Udacity) Udacity
Udacity

Intro to iOS App Development with Swift (Udacity)

Make Your First iPhone App. In this course we will build an iPhone app that records a conversation between you and a friend, and then makes your voices sound like a Chipmunk or Darth Vader. This course will set you on your way to becoming an iOS Developer, where you’ll establish a basic understanding of the iOS ecosystem. You’ll also have working knowledge of Swift, Apple’s custom programming language created exclusively for the mobile developer.

Self Paced
Self-Paced
¡A Programar! Una introducción a la programación (Coursera) Coursera
University of Edinburgh,Universidad ORT Uruguay

¡A Programar! Una introducción a la programación (Coursera)

¿Alguna vez pensaste en crear tus propios juegos de computadora, pero no tenías idea cómo hacerlo o por dónde comenzar? Este curso te enseñará a programar utilizando Scratch, un lenguaje de programación visual muy fácil de usar, y más importante aún, aprenderás los principios fundamentales de la computación para que comiences a pensar como ingeniero/a de software.

Sep 21st 2026
5-12 Weeks
Website Performance Optimization (Udacity) Udacity
Udacity,Google

Website Performance Optimization (Udacity)

The Critical Rendering Path. You will learn how to optimize any website for speed by diving into the details of how mobile and desktop browsers render pages. In this short course, you’ll learn about the Critical Rendering Path, or the set of steps browsers must take to convert HTML, CSS and JavaScript into living, breathing websites. From there, you’ll start exploring and experimenting with tools to measure performance and simple strategies to deliver the first pixels to the screen as early as possible.

Self Paced
Self-Paced
Kotlin for Android Developers (Udacity) Udacity
Udacity

Kotlin for Android Developers (Udacity)

Convert an Android app from Java to Kotlin. In this course, Aaron Sarazan, Lead Software Engineer at Capital One and a leading advocate for Kotlin, demonstrates how to take a basic Android app in Java and convert it to Kotlin, teaching you key features of the Kotlin programming language along the way. This is an efficient, fast-paced introduction to Kotlin for experienced Java programmers.

Self Paced
Self-Paced
Data Science Math Skills (Coursera) Coursera
Duke University

Data Science Math Skills (Coursera)

Data science courses contain math—no avoiding that! This course is designed to teach learners the basic math you will need in order to be successful in almost any data science math course and was created for learners who have basic math skills but may not have taken algebra or pre-calculus. Data Science Math Skills introduces the core math that data science is built upon, with no extra complexity, introducing unfamiliar ideas and math symbols one-at-a-time.

Sep 24th 2026
4 Weeks
HTML5 Canvas (Udacity) Udacity
Udacity

HTML5 Canvas (Udacity)

From Pixels to Animation! Canvas is an HTML5 element which gives you drawable surface inside your web pages you can control with JavaScript. Powerful enough to use for compositing images and even creating games. In this course, through several sample projects, you’ll learn how to use the canvas; how to make compositions using shapes, images, and text; how to create effects and filters on images and how to create animations.

Self Paced
Self-Paced
Server-Side Swift (Udacity) Udacity
Udacity

Server-Side Swift (Udacity)

Production-Ready Swift in the Cloud. In this course, built in collaboration with IBM and Hashicorp, you'll learn how to build server-side Swift applications that run on Linux and in the cloud, including how to use Swift to build a microservices backend. This course covers the best practices for constructing and deploying server-side Swift using industry-proven tools like Docker and Terraform.

Self Paced
Self-Paced