Introduction
Why Swift?
Swift is a modern, safe, and expressive programming language created by Apple. Since its introduction in 2014, it has become the primary language for iOS and macOS development, while also running on Linux and the web.
- Safe by design — optionals, strong typing, and automatic memory management eliminate entire classes of bugs at compile time.
- Expressive — closures, generics, and protocol-oriented programming let you write clean, composable code.
- Fast — Swift compiles to native machine code and consistently outperforms Objective-C.
- Modern syntax — string interpolation, trailing closures, and type inference keep code concise and readable.
A Brief History
Swift was announced at Apple's WWDC in June 2014 and immediately replaced Objective-C as the primary language for Apple platforms. It became open source in December 2015. Swift 3 (2016) stabilized the language; Swift 5 (2019) achieved ABI stability, enabling binary frameworks. Today, Swift 6 brings strict concurrency checking, making safe async code the default.
What You Will Learn
This course has 15 lessons organized into 4 chapters:
- Basics — Hello World, variables, string interpolation, conditionals, switch, and loops.
- Collections — Arrays, dictionaries, and optionals.
- Functional — Closures and higher-order functions (
map,filter,reduce). - Types — Structs, enums, classes, and protocols.
All code runs entirely in your browser via a JavaScript transpiler — no installation required.