Custom Property Wrappers for SwiftUI

A Swift property wrapper adds a layer of separation between code that defines a property and code that managers how a property is stored. By creating custom property wrappers, we write the management code once when we define the wrapper, and then reuse this code when we apply the wrapper to properties. In this post, Dave Delong shares some useful property wrappers that he has come up with while working on SwiftUI.

The Context And The Logic

This is a great post by Soroush Khanlou in which he writes about the two main types of tasks professional programmers work on. Soroush frames these two types of tasks as the context and the logic, arguing that most of a professional programmer's time is spent on the context. This framing allows Soroush to illustrate two important points - that his job is not primarily about programming logic, and that by minimizing the context, he can spend more time on the good stuff.

Be careful with Obj-C bridging in Swift

Type casting in Swift allows us to treat an instance as a different instance of a superclass or subclass from its hierarchy. It's accomplished using the as operator. However, did you know that the as operator is also the Objective-C bridging operator? In this post, Bruno Rocha explains why we need to pay extra attention when casting to make sure we are not also bridging from Swift to Objective-C types.