Dependency injection using factories in Swift
Original: Dependency injection using factories in Swift Original author & copyright: @johnsundell Dependency injection is one of the key tools for making code more testable. Instead of holding onto …
Chen's blog
Swift, SwiftUI, tooling, app architecture, and the small product details that make software feel considered.
Original: Dependency injection using factories in Swift Original author & copyright: @johnsundell Dependency injection is one of the key tools for making code more testable. Instead of holding onto …
Original: Modular Xcode projects Author & Copyright @pepibumur Translator: @OgreMergO Building a modular Xcode project takes a real understanding of …
Original: Handling non-optional optionals in Swift Original author & copyright @johnsundell Optionals are arguably one of the most important features …
Apps receive and handle events through responder objects. A responder is an instance of the UIResponder class — and UIView, UIViewController, and …
Original: Capturing objects in Swift closures Original author @johnsundell Ever since blocks were introduced to Objective-C in iOS 4, they’ve been a …
Closures are first-class citizens in Swift, which means you can pass them around as arguments. While learning Swift, you keep running into keywords that …
Overview Push notifications are something we’re all familiar with — pretty much anyone with a smartphone gets interrupted by them every day. The …
The book Garbage Collection: Algorithms and Implementations has been making the rounds recently, and since I’ve always been curious about how GC …
Original: Elastic view animation, or how I built DGElasticPullToRefresh Author: @gontovnik DGElasticPullToRefresh demonstrates a springy elastic effect. …
A category in Objective-C is a compile-time mechanism that lets you tack extra methods onto an existing class. There’s one catch: you can’t add …