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.
Read moreShowing 1–12 of 22 posts
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.
Read moreCalculate Image I/O thumbnail sizes for aspect-fill crops, account for photo orientation and display scale, and reject oversized requests before decoding.
Read moreBuild a bounded Swift search shortlist with deterministic ties, cancellation, and measurements that include the actual scoring work.
Read moreBuild a bounded async batch loader that keeps results in order, stops admitting work after cancellation, and does not mistake a task limit for a memory or rate limit.
Read moreReduce preview concurrency and decode size as thermal pressure rises, pause optional work at critical state, and drain existing jobs without corrupting accounting.
Read moreSeparate admission of optional work from the lifetime of a user-started operation, and react to Low Power Mode without throwing away progress.
Read moreShape Observation dependencies around row properties and collection membership, then verify which mutations actually invalidate the data being read.
Read moreMeasure async operations with a monotonic clock, record failed attempts too, and keep elapsed latency separate from timestamps and CPU time.
Read moreUse an owned OSSignposter interval to measure a full refresh, balance failures and cancellation, and distinguish elapsed latency from CPU work.
Read moreUse a reproducible task-list query to inspect filtering and sorting, verify that results stay identical, and weigh an index against its write cost.
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 moreMove decoding and projection into an explicit actor, publish one validated result, and keep payload size and cancellation limits visible.
Read more