Topics
537 questions across ten topics, in the order the book teaches them. Every one has the question, how to describe it, and how to use it.
Linked questions are free to read here. The rest are in the free book.
Swift Fundamentals
swift-fundamentals/ · 55 questions- Value Types vs Reference Types
- Optionals and Optional Binding
- Closures and Escaping
- weak vs unowned
- Noncopyable Types (~Copyable)
- InlineArray and Span
- guard vs if let
- Protocols and Protocol-Oriented Programming
- Generics
- Parameter Packs (Variadic Generics)
- Error Handling
- Typed Throws
- and 43 more in the book
UIKit & Views
uikit-views/ · 59 questions- UITableView vs UICollectionView
- Hit Testing
- Layout Cycle
- UIApplication Lifecycle
- View Lifecycle
- Automatic Observation Tracking
- Auto Layout
- Cell Reuse
- Empty, Loading and Error States
- Safe Area
- UIStackView
- Responder Chain
- and 47 more in the book
SwiftUI
swiftui/ · 56 questions- @State, @Binding, @Bindable, and (legacy) @ObservedObject
- View Lifecycle
- NavigationStack and Navigation
- Modifier Order
- Observable Macro
- @StateObject vs @ObservedObject
- body as Computed Property
- ObservableObject and @Published
- Optional Binding
- TabView and Tab
- Sheets and fullScreenCover
- @Environment and (legacy) @EnvironmentObject
- and 44 more in the book
Architecture
architecture/ · 53 questions- MVVM
- Coordinator Pattern
- SOLID Principles
- Service Locator vs DI
- MVC
- VIPER
- Dependency Injection
- Repository Pattern
- Delegate Pattern
- NotificationCenter
- Clean Architecture
- Protocol-Oriented Architecture
- and 41 more in the book
Networking
networking/ · 54 questions- A Networking Layer for Swift 6 Strict Concurrency
- Authentication
- SSL Pinning
- REST vs GraphQL
- URLSession
- Codable and JSON
- REST API Design
- Error Handling
- Passkeys
- App Attest and DeviceCheck
- Caching Policy
- Background Downloads
- and 42 more in the book
Concurrency
concurrency/ · 54 questions- MainActor
- Grand Central Dispatch
- Actors
- Race Conditions and Data Races
- async/await
- Approachable Concurrency (Swift 6.2)
- Isolated Conformances
- Task
- OperationQueue
- Sendable
- Region-Based Isolation and `sending`
- Thread Safety
- and 42 more in the book
Memory & Performance
memory-performance/ · 52 questions- ARC
- Image Loading and Caching
- Hangs vs Hitches
- Heap vs Stack
- Retain Cycles
- Instruments
- Finding SwiftUI Performance Problems
- Debugging Swift Concurrency Performance
- Scroll Performance
- Lazy Loading
- Autoreleasepool
- NSCache
- and 40 more in the book
Data Persistence
data-persistence/ · 50 questions- When to Use UserDefaults
- SwiftData vs Core Data
- Migrating from Core Data to SwiftData
- Offline Persistence
- UserDefaults
- Data Modeling for Mobile
- SwiftData Basics
- ModelContainer and ModelConfiguration
- SwiftData Attributes
- SwiftData Relationships
- #Predicate and FetchDescriptor
- Dynamic SwiftData Queries
- and 38 more in the book
Testing
testing/ · 54 questions- Mocking and Stubbing
- TDD
- Test Doubles: Mock, Stub, Spy, Fake
- Swift Testing Framework
- Unit Testing
- UI Testing
- Testing Resizable Layouts and iPhone Duo
- XCTest and Async
- ViewModel Testing
- Snapshot Testing
- Accessibility Identifiers
- Code Coverage
- and 42 more in the book
System Design
system-design/ · 50 questions- Scalable Chat App
- Offline Mode Design
- Pagination Design
- Caching Layer Design
- Image Caching System
- Feed Loading (Instagram-style)
- Push Notification System
- Modular App Architecture
- Analytics Implementation
- Infinite Scroll Feed
- App State Restoration
- Background Uploads
- and 38 more in the book