SwiftUI Weekly - Issue #224
The curated collection of links about SwiftUI. Delivered every Monday.
Reading
Zooming With The Magnify Gesture in SwiftUI
Zooming content in and out is a fundamental gesture that users of smartphones and tablets are well acquainted with. Also known as pinch to zoom, this gesture is available to attach to our SwiftUI views programmatically, letting users change the scale level of what they are interacting with, using a familiar move of the fingers.
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.
