u
Core Swift: Functions, Closures & Custom Types
A hands-on, intermediate-level Swift course covering the six building blocks every real iOS or Swift app depends on: functions, closures, optionals, structs & classes, enumerations, and error handling Through interactive code challenges, quizzes, and visual diagrams, you'll move past basic syntax and start writing Swift the way experienced developers actually do, safely unwrapping optionals, modeling data with structs and enums, and handling failure with do-catch instead of crashes.
Course Details
Language
SwiftDuration
6–8 hoursDifficulty:
mediumCategory
Programming
Certificate
YesRequirements
- Completion of a beginner Swift course (or equivalent basic syntax knowledge: variables, if/else, loops, arrays)
- Xcode or Swift Playgrounds installed (for practicing beyond the in-browser code runner)
- No prior app-development experience needed
Author

01Functions
4 Chapters - 0/4 Completed
Functions
4 Chapters - 0/4 Completed
Defining & Calling Functions
Parameters (default, variadic, in-out)
Return Values & Tuples
Function Types & Closures as Parameters
02Closures
4 Chapters - 0/4 Completed
Closures
4 Chapters - 0/4 Completed
Closure Syntax Basics
Trailing Closures
Capturing Values
Escaping vs Non-Escaping Closures
03Optionals Deep Dive
4 Chapters - 0/4 Completed
Optionals Deep Dive
4 Chapters - 0/4 Completed
Optional Binding (if let, guard let)
Nil-Coalescing Operator
Optional Chaining
Force Unwrapping, Risks & Best Practices
04Structs & Classes
7 Chapters - 0/7 Completed
Structs & Classes
7 Chapters - 0/7 Completed
Defining Structs
Defining Classes
Value Types vs Reference Types
Value Types vs Reference Types
Properties (stored, computed, lazy)
Property Observers (willSet/didSet)
Methods & self
05Enumerations
4 Chapters - 0/4 Completed
Enumerations
4 Chapters - 0/4 Completed
Basic Enums
Associated Values
Raw Values
Enums with Methods
06Error Handling
3 Chapters - 0/3 Completed
Error Handling
3 Chapters - 0/3 Completed





