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: safeAreaPadding
Swift.Mackarous
I explore a new SwiftUI modifier in this one: safeAreaPadding
. Safe area padding is useful for scroll views or any type of view with any content overlap. In the case of a horizontal scroll view for example, you might want to pad the edges from the screen but not clip the contents when scrolling.
Understanding SwiftUI’s onChange
Fatbobman
A really in depth article on how SwiftUI’s onChange modifier works, including some useful alternatives and extensions.
How to draw part of a solid shape using trim()
Hacking with Swift
Trimming shapes is straightforward in SwiftUI, and it’s an easy way to manipulate shapes instead of creating custom ones. The article shows an example of trimming a circle into a semi-circle.