SwiftUI Weekly - Issue #224
The curated collection of links about SwiftUI. Delivered every Monday.
Reading
Turning a Menu into a Mini Settings Panel in SwiftUI
Menus in SwiftUI are often used for quick, one-off commands: select an option, trigger an action, and you’re done. But what if you want a menu to behave less like a simple picker and more like a mini settings panel, where users can toggle multiple options in sequence before committing a final choice?
ScrollView snapping in SwiftUI
By default, a ScrollView in SwiftUI uses the system’s standard deceleration rate and the scrolling velocity to determine where the scroll motion should stop. While this behavior works well in most situations, it doesn’t consider the dimensions of the scroll view or its content.
SwiftUI Architecture: Structure Views for Reusability and Clarity
As your SwiftUI projects grow, the need for a better SwiftUI architecture grows, as it’s easy for view bodies to become very long. You start with a simple screen, and before you realize it, your body includes dozens of nested VStacks, HStacks, and custom modifiers. At some point, scrolling through the body feels like reading a novel.
Optimize Your App’s Speed and Efficiency: Q&A
Learn depth of optimization from Apple Team.
Video
Optimize your app's speed and efficiency
Whether you’re optimizing an existing app or just starting out, you’ll learn how to improve your app’s responsiveness with SwiftUI, monitor performance when using foundation models, and explore ways to reduce your app’s battery usage.
