Each week, I’ll share curated Swift and SwiftUI tips, tricks, and tutorials to elevate your iOS development journey. Here you will find a roundup of articles or videos, and personal insights into the evolving world of Swift and SwiftUI.
Whether you’re a seasoned developer or just starting, this is your one-stop hub to stay sharp, learn something new, and spark fresh ideas.
Articles
SwiftUI Modifiers Deep Dive: scrollBounceBehavior
Swift.Mackarous
I explore a new SwiftUI modifier in this one: scrollBounceBehavior
. This modifier allows you to disable scroll view bouncing if the content size is less than the scroll view size, without needing to track geometry!
Previewing your app’s interface in Xcode
Apple Developer
Nice updates to previews last year, and the documentation explains how to use Previewable and PreviewModifier. PreviewModifier is helpful when you want to inject mock data into your previews without having to deal with the environment on each view.
Mastering SwiftUI Scrolling: Implementing Custom Paging
Fatbobman
Xu Yang is back again with another really in depth article on how to create custom scrolling behaviour on iOS 17+ by implementing a custom ScrollTargetBehavior.