New content added weeklyLive
Master Swift with Adaptive AI.
Master Swift across 26 topics - Foundations, OOP and Protocols, and Concurrency and Advanced Shift - guided by Leyaa's adaptive intelligence.
3Parts
26Topics
223Patterns
55hEst. duration
Swift Course
3 - part learning journey
Foundations
9 topics · 81 patterns
OOP and Protocols
9 topics · 78 patterns
Concurrency and Advanced Shift
8 topics · 64 patterns
✦ Course Structure
Your Swift Journey in 3 Parts
Each part builds on the last - a deliberate progression from beginner to advanced.
Part 1: Foundations
Covers Swift Basics and Runtime, Variables and Constants, Data Types and 6 more topics.
9Topics
81Patterns
View topics
Part 2: OOP and Protocols
Covers Closures, Structures and Value Semantics, Classes and Reference Semantics and 6 more topics.
9Topics
78Patterns
View topics
Part 3: Concurrency and Advanced Shift
Covers Advanced Protocols and POP, Memory Management with ARC, Concurrency with async/await and 5 more topics.
8Topics
64Patterns
View topics
Curriculum
Everything You'll Learn
Explore every topic and pattern in the course.

Swift
3 parts · 26 topics · 223 patterns100% freeEvery pattern is free. Create a free account to start, and Leyaa tracks what you actually know.
Part 1: Foundations9 topics · 81 patterns
Beginner01
Swift Basics and Runtime
8 patterns
Free
What is SwiftStart free Why Swift for Apple and beyondStart free How Swift compiles to native codeStart free Swift REPL and PlaygroundsStart free Main entry point and @main attributeStart free Print function for outputStart free Comments and documentation markupStart free Project structure and Swift Package Manager basicsStart free
02
Variables and Constants
8 patterns
Free
Why let and var distinction mattersStart free Let for constants (immutable)Start free Var for variables (mutable)Start free Type inference by the compilerStart free Explicit type annotationStart free String interpolationStart free Type aliases for readabilityStart free Semicolons are optional behaviorStart free
03
Data Types
9 patterns
Free
Why Swift is strongly typedStart free Int, Double, Float number typesStart free Bool type and logical operatorsStart free Character and String typesStart free String is a value type behaviorStart free Type conversion is always explicitStart free Numeric literal formatsStart free Tuples for grouped valuesStart free Typealias for custom namingStart free
04
Optionals
10 patterns
Free
Why optionals are Swift's core safety featureStart free Optional declaration with ? suffixStart free Nil represents absence of valueStart free Optional binding with if letStart free Guard let for early exitStart free Force unwrapping with ! and its dangerStart free Nil coalescing operator (??)Start free Optional chaining with ?.Start free Implicitly unwrapped optionalsStart free Multiple optional bindingStart free
05
Operators and Expressions
9 patterns
Free
Why operator safety matters in SwiftStart free Arithmetic operators and overflowStart free Comparison operatorsStart free Logical operatorsStart free Range operators (... and ..<)Start free Ternary conditional operatorStart free Nil coalescing operator deep usageStart free Identity operators (=== and !==)Start free Operator overloading conceptStart free
06
Control Flow
9 patterns
Free
Why Swift has no implicit fallthroughStart free If and if-else statementsStart free Switch statement powerStart free Switch with value bindingStart free Switch with where clausesStart free Switch with compound casesStart free Switch must be exhaustiveStart free Guard for early exit patternStart free No implicit fallthrough in switchStart free
07
Loops
9 patterns
Free
Why Swift loops are safe by defaultStart free For-in loop with rangesStart free For-in loop with collectionsStart free For-in with where clauseStart free While loopStart free Repeat-while loopStart free Stride for custom stepStart free Break and continue behaviorStart free Labeled statements for nested loopsStart free
08
Functions
10 patterns
Free
Why functions are first-class in SwiftStart free Function declaration syntaxStart free Argument labels and parameter namesStart free Omitting argument labels with _Start free Default parameter valuesStart free Variadic parametersStart free In-out parameters for mutationStart free Functions returning tuplesStart free Functions as typesStart free Nested functionsStart free
09
Collections
9 patterns
Free
Why collections are value types in SwiftStart free Array creation and type inferenceStart free Array operations (append, insert, remove)Start free Array iteration and enumeratedStart free Dictionary creation and accessStart free Dictionary methods and default valuesStart free Set creation and operationsStart free Set algebra (union, intersection, difference)Start free Collection mutability tied to let/varStart free
Part 2: OOP and Protocols9 topics · 78 patterns
Intermediate01
Closures
10 patterns
Free
Why closures are fundamental in SwiftStart free Closure expression syntaxStart free Trailing closure syntaxStart free Shorthand argument names ($0, $1)Start free Closures as function parametersStart free Capturing values from contextStart free Escaping closures (@escaping)Start free Autoclosures (@autoclosure)Start free Closures are reference typesStart free Memory implications of capturesStart free
02
Structures and Value Semantics
9 patterns
Free
Why structs are preferred in SwiftStart free Struct declaration syntaxStart free Memberwise initializerStart free Methods in structsStart free Mutating methods for value typesStart free Computed propertiesStart free Property observers (willSet, didSet)Start free Structs are value types (copy on assign)Start free Comparing structs vs classes decisionStart free
03
Classes and Reference Semantics
9 patterns
Free
Why classes exist alongside structsStart free Class declaration syntaxStart free Classes are reference typesStart free Initializers and designated initStart free Convenience initializersStart free Deinitializers for cleanupStart free Identity comparison (===)Start free Reference sharing and side effectsStart free ARC overview for memory managementStart free
04
Inheritance
8 patterns
Free
Why inheritance is class-only in SwiftStart free Base class and subclassStart free Overriding methods and propertiesStart free Calling super for parent behaviorStart free Preventing overrides with finalStart free Type casting with as, as?, as!Start free Is operator for type checkingStart free Any and AnyObject typesStart free
05
Protocols
10 patterns
Free
Why protocol-oriented design mattersStart free Protocol declaration syntaxStart free Protocol requirements (methods and properties)Start free Protocol conformanceStart free Protocol inheritanceStart free Protocol compositionStart free Protocol as typesStart free Protocol extensions with default implementationsStart free Equatable, Hashable, Comparable protocolsStart free Codable protocol for encoding/decodingStart free
06
Enumerations
8 patterns
Free
Why enums are powerful in SwiftStart free Enum declaration and casesStart free Iterating enum cases with CaseIterableStart free Raw values for enumsStart free Associated values per caseStart free Enum methods and computed propertiesStart free Recursive enumerationsStart free Enum with switch pattern matchingStart free
07
Error Handling
8 patterns
Free
Why error handling is explicit in SwiftStart free Error protocol conformanceStart free Throwing functions with throwsStart free Do-try-catch execution flowStart free Try? for optional resultStart free Try! for forced unwrapStart free Rethrowing functionsStart free Defer statement for cleanupStart free
08
Extensions
8 patterns
Free
Why extensions add capability without modifyingStart free Extension syntaxStart free Adding computed propertiesStart free Adding methodsStart free Adding initializers via extensionStart free Protocol conformance via extensionStart free Extensions with constraintsStart free Extending built-in typesStart free
09
Generics
8 patterns
Free
Why generics provide type safetyStart free Generic function declarationStart free Generic type declarationStart free Type constraints with protocol conformanceStart free Associated types in protocolsStart free Where clauses for complex constraintsStart free Generic subscriptsStart free Opaque types with some keywordStart free
Part 3: Concurrency and Advanced Shift8 topics · 64 patterns
Advanced01
Advanced Protocols and POP
8 patterns
Free
Why protocol-oriented programming mattersStart free Protocol extensions for shared behaviorStart free Conditional conformanceStart free Protocol with associated typesStart free Type erasure conceptStart free Existential types (any keyword)Start free Protocol composition in practiceStart free POP vs OOP decision patternsStart free
02
Memory Management with ARC
8 patterns
Free
Why ARC matters for Swift developersStart free Strong reference cycles between classesStart free Weak references to break cyclesStart free Unowned references for guaranteed lifetimeStart free Closures causing retain cyclesStart free Capture lists in closuresStart free Weak self and unowned self patternsStart free Debugging memory leaks with InstrumentsStart free
03
Concurrency with async/await
9 patterns
Free
Why modern concurrency mattersStart free Async functions declarationStart free Await for calling async functionsStart free Task for launching concurrent workStart free Task groups for parallel executionStart free Structured concurrency modelStart free Cancellation handlingStart free Async sequences (AsyncSequence)Start free MainActor for UI workStart free
04
Actors and Data Safety
8 patterns
Free
05
Advanced Collections and Algorithms
9 patterns
Free
Why collection algorithms matterStart free Map, filter, reduce patternsStart free CompactMap for optional unwrappingStart free FlatMap for nested collectionsStart free Lazy collections for performanceStart free Sorted and custom comparatorsStart free Zip for combining sequencesStart free Sequence protocol for custom iterationStart free Collection slicing and indicesStart free
06
Property Wrappers
7 patterns
Free
Why property wrappers reduce boilerplateStart free @propertyWrapper declarationStart free WrappedValue and projectedValueStart free Built-in property wrappers (@State, @Published)Start free Custom validation property wrappersStart free Property wrappers with configurationStart free Composing property wrappersStart free
07
Result Builders
7 patterns
Free
08
Testing in Swift
8 patterns
Free
Why testing mattersStart free XCTest framework basicsStart free Test case and test method structureStart free Assertions (XCTAssertEqual, XCTAssertTrue)Start free Testing async codeStart free Test doubles (mocks, stubs)Start free Protocol-based dependency injection for testingStart free Performance testing with measure blocksStart free
Not just a course. A learning intelligence.
Leyaa doesn't just deliver content - it understands where you are, what you need, and how to get you there fastest.
Adaptive Diagnostics
Leyaa identifies which of the 223 patterns you've mastered and which need work - before you waste time on what you already know.
Pattern-Level Precision
Every pattern gets a verdict - Learn, Practice, or Skip - so your study time goes exactly where it counts.
Intelligent Pacing
Leyaa reads your velocity across the whole course and adapts your focus list dynamically, keeping you in the optimal learning zone.
Before & After Visibility
Every assessment creates a snapshot. Retake anytime to see exactly how much you've grown - topic by topic, pattern by pattern.
Learner Autonomy
Leyaa recommends, never restricts. Override any suggestion and explore at your own pace - the system tracks everything regardless.
Clear Learning Path
Foundations → OOP and Protocols → Concurrency and Advanced Shift - a structured journey where each part sets you up perfectly for the next.
Swift
Ready to master Swift?
Start your journey today
Start your diagnostic now. Build mastery across all 26 topics in under 15 minutes.
26 Topics
223 Patterns
Personalized roadmap












