The engineering notebook
RSS feed#swift
Articles, practical guides, and engineering notes on swift.
By Ashish Bhakhand 108 published articles
Explore the articles
20 articles
Reset filtersTesting TCA Features with Controlled Dependencies and Time
Drive reducer actions directly while clocks, streams, identifiers, and clients produce deterministic effects.
Rendering Shareable SwiftUI Cards with ImageRenderer
Export crisp, predictable social images with fixed canvases, reusable components, and transparent rounded corners.
Deep Linking into Nested TCA State
Translate a URL into application intent, select the right tab, and restore the destination state it requires.
Building Workout Live Activities and Dynamic Island UI
Map durable workout state into ActivityKit, support interactions, and reconcile duplicate or stale activities.
Interactive Widgets with App Intents
Perform a small background action, refresh authoritative data, and republish the widget without opening the app.
Building iOS Widgets with App Groups and Snapshot Models
Publish small, versioned widget snapshots instead of sharing an application's full persistence model.
Background Health Synchronization on iOS
Combine HealthKit delivery, background tasks, foreground recovery, and idempotent writes without assuming exact execution.
Resumable One-Year HealthKit Backfills
Import long health histories in bounded windows with durable progress and idempotent writes.
HealthKit Synchronization Beyond Reading Samples
Design authorization, anchored queries, source handling, daily aggregation, and deduplication as one reliable pipeline.