Swift

Ultimate Swift Series

Swift fundamentals for app developers who want to understand the language behind real iOS and macOS apps.

20 chapters · about 605 min end to end

  1. Getting Started with Swift DevelopmentLearn how to set up your Mac for Swift development. Install Xcode, create your first Swift playground, and write your first lines of code.Beginner · 15 min
  2. Why Learn Swift in 2026? A Complete Roadmap for BeginnersA complete roadmap from zero to building real apps with Swift -- what you'll learn, how the language is structured, and what makes Swift special.Beginner · 18 min
  3. Expressions, Variables & ConstantsHow computers handle numbers, Swift arithmetic, binary & hex, and storing data with let and var.Beginner · 25 min
  4. Types & OperationsType conversion, type inference, strings, string interpolation, tuples, Unicode, and numeric types.Beginner · 28 min
  5. Basic Control FlowBooleans, comparison operators, if/else, ternary operator, while loops, repeat-while, and scope.Beginner · 30 min
  6. Advanced Control FlowFor loops, ranges, switch statements, pattern matching, partial matching with tuples, and labeled statements.Beginner · 28 min
  7. FunctionsParameters, argument labels, return values, tuples, inout, overloading, and functions as values.Beginner · 30 min
  8. Optionalsnil, force unwrapping, optional binding (if let), guard let, nil coalescing, and safe coding patterns.Beginner · 28 min
  9. Arrays, Dictionaries & SetsOrdered arrays, key-value dictionaries, unique-value sets, performance characteristics, and Big-O notation.Beginner · 35 min
  10. Closures & Collection IterationClosure syntax, capturing, trailing closures, and functional operations -- map, filter, reduce, compactMap, lazy collections.Intermediate · 32 min
  11. Strings Deep DiveUnicode, grapheme clusters, string indexing, substrings, raw strings, character properties, and UTF-8/UTF-16 encoding.Intermediate · 30 min
  12. RegexPattern matching with Swift regex literals and RegexBuilder -- character classes, repetitions, anchors, captures, and TryCapture transforms.Intermediate · 35 min
  13. StructuresDefining your own value types in Swift -- properties, methods, mutability, value semantics, and protocol conformance with CustomStringConvertible.Beginner · 30 min
  14. PropertiesStored vs computed properties, get/set, type properties with static, willSet/didSet observers, and lazy initialization.Beginner · 30 min
  15. MethodsMethods, self, initializers, mutating methods, type methods with static, and extending existing types with extension.Beginner · 32 min
  16. ClassesClasses vs structs in Swift -- reference semantics, the heap, object identity with ===, shared mutation, and when to reach for which.Beginner · 32 min
  17. Advanced ClassesInheritance, overriding, and polymorphism in Swift -- the override/super/final keywords, casting with as/as?/as!, two-phase initialization, designated vs convenience vs required initializers, ARC, deinit, and breaking retain cycles with weak.Intermediate · 34 min
  18. EnumerationsSwift enums in depth -- cases and exhaustive switches, methods and computed properties, raw values and failable init, CaseIterable, associated values with pattern matching, enums as state machines, case-less namespace enums, and the reveal that Optional is itself an enum.Intermediate · 33 min
  19. ProtocolsProtocols in Swift -- defining a contract with method, property, static, mutating, and initializer requirements; conformance with classes, structs, and extensions; default implementations; protocol inheritance and composition; associated types; any vs some; AnyObject; and the standard-library protocols Equatable, Comparable, Hashable, Identifiable, and CustomStringConvertible.Intermediate · 42 min
  20. GenericsGenerics in Swift -- how one set of types defines another, the anatomy of a generic type and its type parameters, generic functions, type constraints with protocols, the some and any keywords, the generic where clause, conditional conformance, capturing concrete type information with metatypes and opaque returns, and a fresh look at Array, Dictionary, and Optional as the generic types they really are.Intermediate · 38 min

Read next

Ultimate SwiftUI SeriesShip iOS Apps SeriesModern Delivery Pipeline