Building a global storage for Vapor
A tutorial on implementing a thread-safe, global storage solution for shared objects in Vapor 4, addressing common pitfalls in writable services.
A tutorial on implementing a thread-safe, global storage solution for shared objects in Vapor 4, addressing common pitfalls in writable services.
A Swift extension simplifies rounding specific corners of a CALayer by providing more intuitive constant names like .bottomLeft.
Explains how to add delays to Swift Tasks using Task.sleep, with examples and a custom delayed task abstraction.
Explains when and how to implement the Equatable and Identifiable protocols in Swift for effective domain modeling with value types.
Explores using Swift's async/await for lightweight dependency injection and easier unit testing of asynchronous networking code.
A developer shares initial impressions of learning Swift and SwiftUI for iOS development, comparing it to Rust and discussing its syntax and features.
Explains the role of Tasks in Swift's concurrency system, focusing on bridging synchronous UI code with asynchronous operations and automatic main thread handling.
Explores the creation, maintenance, and uncertain future of a ReactiveSwift fork of the Composable Architecture (TCA) for cross-platform compatibility.
A tutorial on implementing tree data structures in Swift, covering structs, enums, and classes for representing hierarchical data.
A guide to writing unit tests for Swift code that uses async/await, covering asynchronous test methods and error handling.
Explains the performance difference between using `isEmpty` and `count == 0` to check for empty collections in Swift, focusing on time complexity.
Explains how to make Swift's new async/await system APIs work on older iOS versions using continuations.
Xcode 13.2 beta brings backward compatibility for Swift's async/await and other concurrency features to older OS versions like iOS 13.
Explains how to use Swift's generic type constraints with the 'where' keyword to create specialized extensions for types and protocols.
Explains when to directly access vs. subscribe to Swift @Published properties in unit tests, focusing on testing initial values versus value changes over time.
A tutorial on implementing editable lists in SwiftUI, covering item editing, moves, deletions, and enabling edit mode.
Lyft's iOS team details their journey from a monolithic Objective-C app to a modern, modular architecture to improve scalability and maintainability.
A technical guide to implementing a reorderable UICollectionView in iOS using compositional layouts, diffable data sources, and context menus.
Explains how to implement a download progress bar using Swift's new async/await features and the AsyncBytes API in iOS 15.
A technique using a Backport struct to simplify writing Swift code that supports multiple iOS/Swift versions, making availability checks cleaner.