IOS Development profile picture

Using the Observations framework to observe model properties Starting with Xcode 26, there's a new way to observe properties of your @Observable models. In the past, we had to use the withObservationTracking function to access properties and receive changes with willSet semantics. In Xcode 26 and Swift 6.2, we have access to an entirely new approach that will make observing our models outside […]
https://www.donnywals.com/usin....g-the-observations-f


Discover the world at Altruu, The Discovery Engine
    IOS Development profile picture

How to use [weak self] in Swift Concurrency Tasks? As a developer who uses Swift regularly, [weak self] should be something that's almost muscle memory to you. I've written about using [weak self] before in the context of when you should generally capture self weakly in your closures to avoid retain cycles. The bottom line of that post is that closures that aren't @escaping […]
https://www.donnywals.com/how-....to-use-weak-self-in-


Discover the world at Altruu, The Discovery Engine
    IOS Development profile picture

Should you opt-in to Swift 6.2’s Main Actor isolation? Swift 6.2 comes with a some interesting Concurrency improvements. One of the most notable changes is that there's now a compiler flag that will, by default, isolate all your (implicitly nonisolated) code to the main actor. This is a huge change, and in this post we'll explore whether or not it's a good change. We'll […]
https://www.donnywals.com/shou....ld-you-opt-in-to-swi


Discover the world at Altruu, The Discovery Engine
    IOS Development profile picture

What is Approachable Concurrency in Xcode 26? Xcode 26 allows developers to opt-in to several of Swift 6.2’s features that will make concurrency more approachable to developers through a compiler setting called “Approachable Concurrency” or SWIFT_APPROACHABLE_CONCURRENCY. In this post, we’ll take a look at how to enable approachable concurrency, and which compiler settings are affected by it. How to enable approachable concurrency […]
https://www.donnywals.com/what....-is-approachable-con


Discover the world at Altruu, The Discovery Engine
    IOS Development profile picture

Ternary operator in Swift explained Tons of languages have support for ternary expressions. In this post we learn what ternaries look like in Swift, and when we can replace them with if expressions.
https://www.donnywals.com/tern....ary-expressions-in-s


Discover the world at Altruu, The Discovery Engine