Those Who Swift - Issue 294
Weekly note ✏️Happy almost-Thanksgiving! Some of you are getting ready to cook. Some are already mentally checked out and waiting for GTA VI to take over the long weekend. And some of us are doing the usual engineering thing: squeezing in one more PR before everyone disappears. This week’s theme is knowing where to draw the line. A smaller cancellation scope, a read-only API that really is read-only, and SwiftUI APIs that do just enough work. Turns out, good engineering is often less about what you add and more about what you deliberately keep out. Before the holiday break, here’s a question: what’s one thing you made smaller, simpler, or safer in your codebase this year? Draw a Smaller Boxwith Divya Ravi — Technical Editor GTA VI is finally here, and the appeal of an open-world game is obvious: go anywhere, try anything, see what happens. That sounds fun in a game. In production code, it’s how you end up with a five-star wanted level because one innocent-looking operation had access to far more than it needed. I’ve seen this pattern in plenty of places. A task cancellation that takes down work it shouldn’t. An API that exposes more capability than its caller needs. A UI update that triggers work across half the view tree. The code can be perfectly valid and still have too much reach. We spend a lot of time discussing correctness, performance and architecture. We don’t always spend enough time asking a simpler question: what is the smallest area this code actually needs to affect? That’s the idea behind this week’s four reads. Start with Swift concurrency. SE-0568, proposed by Konrad Malawski and Franz Busch, introduces Cancelling the current task isn’t a great alternative. It can cancel the caller along with the operation you meant to stop. That’s a bit like leaving Thanksgiving dinner by pulling the fire alarm. The proposed cancellation scope gives that work its own boundary. Cancel the scope, and the cancellation stays there. The caller doesn’t get taken down with it. That’s a useful improvement, especially in code where cancellation is part of the normal control flow rather than an exceptional event. Blake Crosley takes the same principle into App Store Connect tooling. His open-source MCP server has 14 tools, but the interesting design decision is what it cannot do: write. The client uses a single HTTP method, checks URLs against Apple’s host before sending the token, and doesn’t follow redirects. That last detail is worth paying attention to. Pagination URLs come back in API responses, so blindly following them can create a security problem. More broadly, an MCP annotation such as Natalia Panferova brings the scope discussion into SwiftUI. There are several ways to respond to scrolling, but her advice is to use the narrowest API that gets the job done. It’s a small API choice, but these choices add up. Scrolling is one of those places where unnecessary work becomes visible very quickly. And then there’s Mohammad Azam’s look at Put these four examples together and there’s a distinction worth keeping: documented boundaries are useful, but enforced boundaries are safer. A README can ask an agent not to write to an API. A client with no write method makes that impossible. A team convention can ask developers to cancel only their own work. A scoped cancellation API gives them a safer way to do it. This matters even more when you’re building an SDK or a platform used by other teams. The API you expose becomes part of someone else’s architecture. If it has more power than the integration needs, you’re passing that complexity and potentially the risk downstream. A method that looks internal today can become a dependency tomorrow. A broad permission granted for convenience can be very difficult to take back. So here’s a useful exercise before the long weekend: pick one powerful credential, task, object or API in your app. Write down what it can do, then write down what it actually needs to do. The gap is a good place to look for your next refactor. You don’t need to turn every boundary into a complicated abstraction. Sometimes the best design is simply not exposing the extra capability in the first place. What’s one boundary you’ve tightened in your codebase and what made you realize it needed tightening? Hit reply. I’d love to hear about it. Happy Thanksgiving to everyone celebrating. And to those on call: may your alerts stay quieter than the parade. Related reading on this week's theme πFour examples of keeping the blast radius small: one in Swift concurrency, one in an MCP client, one in SwiftUI, and one in how we work with coding agents. SE-0568: Task Cancellation ScopesKonrad Malawski and Franz Busch propose πLevel: Advanced What a Read-Only App Store Connect MCP Server Taught MeBlake Crosley built an App Store Connect MCP server that’s read-only by design. The interesting part is the implementation: one HTTP method, host validation before the token is sent, and no redirects. The post also gets into some less obvious App Store Connect API quirks, including version counts that don’t match reality and a sales report with negative downloads. Worth a look if you’re building tools that handle credentials or connect agents to external services. πLevel: Intermediate Scroll-Driven Effects in SwiftUI: Phases, Geometry and Scroll StateNatalia Panferova walks through the different SwiftUI APIs for responding to scrolling, with examples including photo fades, parallax and blurred backgrounds. The useful part is knowing when to use πLevel: Intermediate Working With AGENTS.md: What I LearnedMohammad Azam tests whether Codex in Xcode follows the coding conventions described in an πLevel: Beginner This Week in Those Who Swift π️The latest across Swift, Apple, AI, and the community. Swift Around the Web πcron & Calendar.RecurrenceRuleMattt shows that the cron line πLevel: Intermediate Native 128-Bit Decimal Floating-Point ArithmeticXiaodi Wu releases DecimalAnnex, a dependency-free, pure-Swift IEEE 754 πLevel: Advanced Inside swiftc: How Swift Turns Source Into SIL, LLVM IR and Machine CodeDheerendra Chaturvedi follows one function through every compiler stage, from type checking to SIL, LLVM IR and assembly. Highlights: one expression took 9,369 ms to type-check (the πLevel: Advanced xcmutate: Mutation Testing for SwiftRyo Hirota’s new tool makes tiny changes to your code ( πLevel: Intermediate Coding π¨π»SwiftUI @State Is Now a Macro in Xcode 27In Xcode 27, πLevel: Intermediate Server-Sent Events in VaporKyle Browning introduces π Level: Intermediate Apple πTax and Price Updates for Apps, In-App Purchases, and SubscriptionsApple has announced tax changes in Botswana, Rwanda, Cameroon and CΓ΄te d’Ivoire, a new SaaS tax setting, and price updates in five countries starting December 3. California sales tax will also apply to several app categories beginning January 1, 2027. If you manage subscriptions or App Store pricing, this is one to put on the release-planning checklist before the year wraps up. Meet the 2026 App Store Award FinalistsApple has announced 45 finalists across iPhone, iPad, Mac, Vision Pro, Apple Watch, Apple TV, Arcade and Cultural Impact. Winners are expected in the coming weeks. It’s a good collection to browse for product and design inspiration—or something to scroll through while keeping an eye on the oven timer. AI & Tooling π€How We Rebuilt the Shopify App in 12 WeeksShopify shares how roughly 30 engineers, working in pairs with multiple agents, rebuilt a React Native app with more than 300 screens in Swift and Kotlin over 12 weeks. Every PR went through an adversarial agent review before a human signed off. Shopify also reports that peak iOS memory dropped from 730 MB to 190 MB. Those are impressive numbers, but the more interesting read is the engineering process: how the work was divided, how agents were used, and where human review stayed in the loop. πLevel: Intermediate Design π¨Interval Timers Done RightDetlev Voss explains why his timer app rings and waits at the end of each phase instead of rolling on by itself, and how you confirm the next step from the notification, the Live Activity, the widget or the app. Each phase gets its own colour and sound, so you know what just ended without looking. Small, careful UX decisions, and handy if you’re timing a turkey and three side dishes. πLevel: Beginner Tutorials πMVC, MVP, MVVM, VIPER: Which Ones Matter for SwiftUI?Karin Prater revisits the familiar architecture patterns and asks how much of them still makes sense in a SwiftUI app. She argues that MVC and MVP are less useful in this context, VIPER can be heavier than necessary, and MVVM with services and coordinators is a practical starting point. A good read if your team is revisiting its architecture—or if the topic comes up at Thanksgiving dinner. Maybe keep the debate shorter than the meal. πLevel: Beginner Managing Scroll Position in SwiftUINatascha Fadeeva looks at πLevel: Intermediate Video π₯Safe Systems Programming With Mutable Value SemanticsDave Abrahams’ keynote from IWACO 2026 at SPLASH explores the mutable value semantics model behind the Hylo language. If you’ve been curious about where ideas around value types and safe systems programming could go beyond Swift, this is a worthwhile watch. A good long-weekend pick—and probably shorter than getting distracted by one more GTA side mission. πLevel: Advanced Community π€Trust and AuthorshipMatt Massicotte looks at the debate around AI-assisted work and argues that the bigger issue isn’t simply how much AI was used. It’s whether people can trust the person putting their name on the result. He doesn’t offer an easy formula, which is part of what makes this worth reading. A useful perspective as AI becomes a more ordinary part of engineering workflows. πLevel: Beginner How to Be a 10x Engineer in 2027 and BeyondSergey Tselovalnikov challenges the idea that the next generation of 10x engineers will simply be the people who generate the most code or run the most agents. His argument: the real advantage comes from recognizing which business problems AI now makes possible to solve. A good end-of-year read if you’re thinking about where to focus your engineering energy in 2027. πLevel: Beginner Thanks for reading Those Who Swift! Subscribe for free to receive new posts. π
|

