Companion repository for the Advanced Swift Series published on iCommunity.
Each chapter covers a specific area of Swift performance. Every concept is backed by a playground to experiment with, and where it makes sense, a real UIKit and SwiftUI app that applies the same ideas in a production context.
How Swift's collection types actually work under the hood — and how to choose the right one.
CollectionVault — a UIKit app built alongside the articles. Set<UUID> for O(1) favorites lookup, a custom OrderedSet for search history with MRU behaviour, RangeSet for efficient bulk deletion, and reduce(into:) for duplicate detection. Every choice is documented with the reasoning behind it. → See the full article ↔ code mapping
A deep dive into Swift Optionals and the ideas behind them. Learn how Swift models the absence of a value in the type system and how to work with optionals safely, clearly, and efficiently.
| Playground | Article |
|---|---|
| Optionals | Advanced Swift: Optionals |
NilSafeProfile — a production-ready SwiftUI app built alongside the article. It demonstrates shorthand if let, optional chaining, lazy ?? evaluation, map and flatMap transformations, compactMap, Swift 6.2 string interpolation, custom !! safety operators, and intentional force-unwrapping in a real feature-based architecture. Every concept maps directly to the explanations in the article. → See the full article ↔ code mapping
More chapters coming soon.
Okan Orkun — Medium · iCommunity