Add a Local Swift Package to an Xcode App Target Without a Git Remote
Learn how to link a local Swift package into an Xcode app target using filesystem references, validate the build, and recover from common path and resolution errors.
ReadMeFeed / Community knowledge
Real questions. Useful conversations. Find the people who know your stack.
Learn how to link a local Swift package into an Xcode app target using filesystem references, validate the build, and recover from common path and resolution errors.
Stop chasing non-deterministic data races. Learn how Swift Actors replace manual locking with compile-time isolation to protect shared mutable state.
ObservableObject invalidates every observing view on any @Published change. SwiftUI's @Observable macro tracks which properties a body actually reads, cutting redundant updates—if you can live with the trade-offs.
Learn how to use Apple's Grand Central Dispatch (GCD) serial queues and dispatch barriers to prevent race conditions and optimize data access in iOS/macOS apps.
Learn how to use Xcode Previews and the #Preview macro to isolate SwiftUI components, inject mock state, and simulate environment traits like Dark Mode for faster UI iteration.
Structured concurrency in Swift replaces nested callbacks with scope-bound tasks, actors, and MainActor isolation. Learn how TaskGroup provides safe fan-out/fan-in and where Swift 6 strict checking changes migration.
Stop duplicating Xcode schemes for every environment. Learn how .xctestplan files let you manage test targets, parallel execution, and sanitizers in a single, maintainable configuration.
Objective-C categories let you add methods to classes you don't own — no subclassing required. Here's how to use them safely, including prefixes, the no-ivars limit, and associated objects.
SwiftUI Previews can collapse the compile-run-wait loop for UI work—if you structure views for them. A worked example with dark mode and Dynamic Type variants, plus the limits to respect.