Download A Large File Without Holding It All In Memory
Use URLSession's file downloads, validate the result, and move temporary data into app storage without turning a large transfer into a large Data value.
Read moreShowing 13–19 of 19 posts
Use URLSession's file downloads, validate the result, and move temporary data into app storage without turning a large transfer into a large Data value.
Read moreSeparate transient failures from safe-to-repeat operations, keep one idempotency key per user action, and test a bounded retry policy without waiting through real delays.
Read moreLet URLSession revalidate a JSON response with ETag, understand what a 304 actually saves, and test server requests separately from decoded app results.
Read moreTwo Swift strings can compare equal while containing different UTF-8 bytes. Match your identifier type to the server contract before using it as a dictionary or SwiftUI identity.
Read moreWrap NWPathMonitor in AsyncStream with bounded buffering, cancellation cleanup, and an explicit stop handle so leaving a loop also releases its underlying work.
Read moreAn actor can still cache an obsolete response after invalidation. Share in-flight tasks and give each request a generation so late results cannot undo a refresh.
Read moreReplace polling with a generated gRPC Swift 2 client for a live order tracker, using a unary bootstrap call, streaming updates, SwiftUI state, and lifecycle-aware reconnects.
Read more