Verify that a shared assertion helper really fails through both test frameworks, choose the right interoperability mode, and preserve the caller's source location.
Badges
Badges come from GitHub once the author claims this feed.
Recent posts
every link opens the author’s post-
Make Shared Test Helpers Fail In XCTest And Swift Testing
-
Keep A Keychain Read Failure From Signing The User Out
Preserve Keychain read errors during session restoration, retry an inconclusive lookup in the foreground, and avoid deleting a saved credential.
-
Pause A SwiftUI Countdown Without Resetting It
Keep a deadline while running, freeze the remaining duration when paused, and let SwiftUI update the display without making every tick an app-state mutation.
-
Stack SwiftUI Buttons When Equal Widths Stop Fitting
Measure the actual labels to choose an equal-width action row or a vertical stack.
-
Sort Document Names Naturally And Keep Ties Predictable
Combine natural name sorting, folders first, and persistent identity so a refreshed document list keeps a predictable order—even when users reverse the names.
-
Keep Resources With The Swift Package That Owns Them
Move bundled JSON into a source Swift package, expose a small typed API, and prove that tests and consuming apps load the package's file instead of their own.
-
Stop Unexpected Redirects Before They Become API Errors
Reject redirects for API endpoints that should answer directly, preserve the original HTTP status, and test that the redirected destination receives no request.
-
Keep SwiftUI Delete Confirmations Tied To The Right Revision
Present a SwiftUI alert from one optional value, capture the item the reader saw, and reject deletion if that item's revision changed before confirmation.
-
Reorder Filtered SwiftUI Lists Without Moving Hidden Rows
Use iOS 27's ID-based reordering to move visible items within their original slots, preserve hidden rows, and reject stale moves before touching your model.
-
Keep Registered Defaults From Leaking Between Swift Tests
Unique UserDefaults suites isolate saved values, but share registered fallbacks.
-
Send Query Values Without Losing Plus Signs
Preserve literal search text with URLComponents, avoid double encoding, and test what a form-style server actually receives.
-
Preserve Clear Actions In Codable Updates
Keep omitted fields, explicit nulls, and replacement text distinct when you encode, save, restore, and apply a partial update.
-
Keep Search Highlights Attached To The Original Text
Use one matching pass to filter and highlight SwiftUI search results, preserve original Unicode text, and keep highlights on whole characters.
-
Page A SwiftData Feed With A Stable Cursor
Replace shifting offsets with a tested SwiftData cursor, handle tied dates and deleted rows, and keep failed reads from losing your place.
-
Building PaperConfetti: A Better Celebration for SwiftUI
Add paper confetti to SwiftUI, then see the rendering, layout, and testing decisions behind it—including why low CPU usage can hide a missing cannon.
-
Keep New Server Statuses From Breaking Your Codable Feed
Preserve unfamiliar server status strings, keep malformed fields failing, and separate readable records from commands your app understands.
-
Downsample Photos For The Crop You Actually Display
Calculate Image I/O thumbnail sizes for aspect-fill crops, account for photo orientation and display scale, and reject oversized requests before decoding.
-
Save Speech Transcripts Without Losing Their Timestamps
Preserve SpeechAnalyzer timing through a JSON round trip, validate the recording association, and reopen a transcript that still knows where its words belong.
-
Keep Built-In Presets Out Of Your SwiftData Store
Keep bundled timer presets separate from user choices, preserve explicit settings across catalog updates, and surface conflicting records without deleting them during a read.
-
Cancel An NSItemProvider Load Without Resuming Twice
Bridge NSItemProvider into async code with Swift 6.4 Continuation, one cancellation owner, and a Progress handle that can arrive after the task is cancelled.
-
Let Readers Pause Auto-Scrolling In SwiftUI Chat
Separate following intent from scroll geometry, count new messages without counting every streamed update, and give readers an explicit way back to the latest message.
-
Reduce Swift Charts Data Without Connecting The Gaps
Keep bucket extrema and missing intervals visible, then inspect original readings instead of treating a reduced chart as the source of truth.
-
Add To Calendar Without Promising To Keep It In Sync
Build a SwiftUI calendar export with EventKitUI, immutable request snapshots, and honest save receipts that survive a rescheduled booking.
-
Replace A C Implementation With Swift Without Changing Its Header
Use @c @implementation to preserve a C interface, check signatures at compile time, and keep buffer ownership and failure behavior explicit.
-
Keep The Best Search Matches Without Sorting Every Result
Build a bounded Swift search shortlist with deterministic ties, cancellation, and measurements that include the actual scoring work.
-
Adopt Remote Configuration Without Changing Work In Flight
Validate a complete remote policy, stage updates safely, and keep each Swift export on one immutable configuration—even when refreshes finish out of order.
-
Keep Pinch Zoom Anchored In A SwiftUI Diagram
Keep repeated pinches stable, convert taps back into diagram coordinates, and give zoom limits and viewport changes an explicit policy.