SwiftUI Weekly - Issue #223
The curated collection of links about SwiftUI. Delivered every Monday.
Reading
Feature flags in Swift
Almost every project I work on has at least three build configurations: Debug, TestFlight, and App Store. These configurations differ not only in build settings but also in functionality. This week, we’ll learn how to implement feature flags in Swift, which allow us to toggle on and off specific functionalities under certain conditions.
Tunable, physics-driven motion primitives for SwiftUI
Kinetics brings the natural feel of real-world physics to your SwiftUI animations. Built on Swift 6 with strict concurrency compliance, it provides a modern, safe foundation for creating motion that responds to user input, respects boundaries, and feels alive.
When SwiftUI automatically applies the glass look and when it doesn’t
Since iOS 18, buttons, toolbars, and other controls can appear in Apple’s new glass button style. What’s interesting is that SwiftUI sometimes applies this effect automatically, depending on where a view is placed. In this article, we’ll look at when that happens, when it doesn’t.
Add a Close button to SwiftUI modals on iOS 26
In iOS 26, SwiftUI introduces a new close button role designed for buttons that dismiss informational views or modals, for example, sheets showing read-only content or contextual details.
Why a custom ViewModifier is often useless
You don’t always need to create a separate ViewModifier struct in SwiftUI. If your modifier just chains some view modifiers and does not depend on internal state or environment values, you can simplify by implementing it as a function on View instead.