- swift
- swift-zero-expert
- swift-fundamentals
Swift Zero to Expert #9: Properties, methods, and subscripts
Stored vs computed properties, observers, lazy, static. How properties define the memory layout and why computed = zero storage.
Tag
21 articles
Stored vs computed properties, observers, lazy, static. How properties define the memory layout and why computed = zero storage.
Value semantics vs reference semantics, static vs dynamic dispatch, and why Apple recommends structs by default. The article that changes how you think about Swift.
Raw values, associated values, recursive enums with indirect, and how the compiler picks the minimal memory representation.
Closure expressions, value capturing, capture lists, @escaping vs non-escaping, and why closures are reference types that live on the heap.
Learn to read Flame Graphs, audit async tasks with Swift Tasks, and push Processor Trace to its limits with a real CLI project that uses Swift Concurrency intensively.
Parameters, labels, inout, function types and functions as values. The gateway to closures and functional programming.
Learn to diagnose performance issues as a scientific process. Master Weight vs Self-Weight, Charge/Prune/Flatten, and scale profiling with xctrace.
if/else, exhaustive switch with pattern matching, guard as a philosophy, and how the compiler optimizes your decisions into jump tables.
Viscerally understand what happens when your code runs. Visualize malloc, free, reference counting, and retain cycles with interactive components.
Unicode scalars, grapheme clusters, why string[0] doesn't exist in Swift, and how Substring shares memory with the original String.
Discover how Swift's collections work inside: when to use each one, their algorithmic complexity, and the elegance of copy-on-write.
First article in the Swift from Zero to Expert series. We explore fundamental data types, operators, and why Swift decides to put things on the stack.
Understand how your app manages memory, why dSYMs are critical, and how to detect performance issues before opening Instruments.
Learn to think like a performance detective. We break down Instruments from mental models to practical hang resolution and code instrumentation with Signposts.
Interactive guide covering the 5 feature flags of Approachable Concurrency in Xcode 26, recommended configuration, and step-by-step migration guide.
A deep dive into Day 5 of Swift Refresh Workshop 2025: neural networks, Transformers, Apple on-device models, FoundationModels, and practical methodology for integrating AI into apps.
A deep dive into the second part of Day 4: Observation as AsyncSequence, truly reactive UIKit with observable models, and typed notifications.
A deep dive into the first part of Day 4: inline arrays, Span, real concurrency with actors, mutex, and atomics. Swift no longer protects, it demands intention.
A recap of Day 3 from Swift Refresh Workshop 2025: state, Liquid Glass, declarative animations, SwiftData, and the new role of Xcode as an agent.
An honest recap of Day 2: strict concurrency with Swift 6 and the Liquid Glass visual language in iOS 26, without losing clarity.
An honest recap of Swift 6.2 strict concurrency: actors, @MainActor, Sendable, and how to migrate without suffering in real-world projects.