Story This week, my colleague asked me a question: how to observe user selection behaviors on SwiftUI's Picker ? This is a question came from real bussiness. Thus I think it worth to take me time to solve it. The example code is as shown below and my colleague wanted to observe user's behaviors on…
Introduction ilist is an intrusive double-linked list -- which means that each linked node stores its data and the node pointers in the same structure. There is no such kind of linked-list implemented containers shipped with the C++ standard library. iplist is a purely intrusive list. Currently…
Introduction Recently, one of my colleagues had been struggling with porting reference semantics model to SwiftUI with ObservableObject and @StateObject . In this post, since there are many examples talked about porting reference semantics models to SwiftUI this way on the Internet, I'm not going…
Latest updated: Apple has accepted the fix for this issue. The final solution was adjusted following a review by the relevant code owner. Right before the Chinese New Year vacation of the Year of the Snake, a colleague showed me a mysterious crash caused by a use-after-free error. Recently, I found…
Fun fact: My Claude Code usage reached USD 3,000 in September, 2025. That's because I've been running Claude Code inside a 24/7 agentic loop to power my side project. While I sleep, the loop evaluates, spawns subagents, and keeps moving forward. When I wake up, progress is already made. But the…
My journey into the internals of Xcode 26’s new AI assistant began not with a bug, but with a feature so persistent it felt like a personality. The animations and design of Xcode have never been better, a testament to Apple's polish. Yet, interacting with the new intelligence features felt…
From the sessions at WWDC 2023, we learned that Swift Macro aims to: Eliminate boilerplates Make tedious things easy Share with other developers in packages However, these goals aren't unique to Swift Macro. They are common objectives for many code reuse methods in Swift, such as functions, types…
In the previous post, we learned the strengths and the essence that uniquely define the Swift Macro. The examples in that post work so far so good. However, can we be confident and bold, implementing any Swift macros we want now? No. The features that bring Swift Macro advantages also introduce…