
Important: This course contains the use of artificial intelligence.
Turn the Swift you know into code that is clear, reusable and hard to break: functions, closures, value types and safe error handling.
Most Swift courses rush through the topic or drown you in theory. Here, every lesson has a single objective, and we don't move on until the concept is solid. Each module ends with a practice project, a coding challenge and a technical interview quiz, so you actually use what you learn.
I'm Cane Allesta, a Senior iOS Developer with 8+ years of experience shipping apps. I teach Swift the way I wish someone had taught it to me: clearly, in order, and with real-world context.
This is Course 2 of 8 in the Mastering Swift series. Each course stands on its own, and together they take you from your first line of Swift to senior-level topics.
What you'll cover
Functions: argument labels, default and variadic parameters, inout, return values and overloading
Functions as values, nested functions and scope
Closures: syntax, capturing, escaping and non-escaping, and @autoclosure
Higher-order functions: map, filter, reduce, sorted, compactMap and flatMap
Structs: properties, observers, computed and lazy properties, initializers, subscripts and access control
Enums with raw and associated values, and modeling app state
Error handling: throws, try, do-catch, Result and typed throws
Swift evolves every year, and so does this course: I keep the lessons up to date.
What you'll learn
Design functions that are clear, reusable and do one thing well
Use closures with confidence, including capture and escaping
Transform data with map, filter, reduce and friends
Model data with safe, expressive structs and enums
Make invalid states unrepresentable
Fail safely with throws, Result and typed throws
Prepare for technical interview questions on these topics
Requirements
A Mac with Xcode installed
Basic Swift knowledge: syntax, types, optionals, collections and control flow (Course 1 of this series or equivalent experience)
Who this course is for
Beginners who know the basics and want to write better Swift
Developers who use closures every day without fully understanding them
Aspiring iOS developers who want safe, expressive models before SwiftUI
Anyone preparing for Swift technical interviews