Stream NDJSON With URLSession And A Record Size Limit
Decode streaming JSON records with URLSession, limit unfinished records, handle cancellation, and distinguish a closed connection from a completed job.
Read moreShowing 13–24 of 34 posts
Decode streaming JSON records with URLSession, limit unfinished records, handle cancellation, and distinguish a closed connection from a completed job.
Read moreConvert stored SwiftData values with an intermediate schema, retain legacy values during conversion, and test real upgrades from older app versions.
Read moreRecord the selected compiler and SDK, verify resolved settings for the app and extensions, and catch deployment-target drift without rewriting release version numbers.
Read moreSeparate scene selection from shared documents, reject stale saves from a second window, and test iPhone Duo scene availability without treating the device name as permission to open a window.
Read moreUse explicit module selection when a type shadows a library name or two imported extensions provide the same method, with positive and negative compiler fixtures.
Read moreAwait resource cleanup before returning, shield only the cleanup that must survive cancellation, and keep cleanup failure separate from the operation's result.
Read moreKeep deprecations strict across a target while allowing one documented compatibility adapter to warn, and verify that the exception cannot silently spread.
Read moreSeparate dependency requirements from the resolved graph, enforce Package.resolved in builds, and record the toolchain inputs a lockfile cannot pin.
Read moreMake date-heavy SwiftUI fixtures reproducible by injecting locale, calendar, time zone, and the instant instead of relying on the developer machine.
Read moreCompare collection-building strategies in an optimized fixture, keep the result observable, and avoid treating suspicious syntax as proof of a performance problem.
Read moreKeep the count inside a localizable sentence, configure plural variants in a string catalog, and test the compiled resource instead of a hand-written English rule.
Read moreIdentify fields independently of their position, define Next from the current model order, and choose a focus destination before deleting a row.
Read more