SwiftUI Weekly - Issue #230
ReadingBorrowing from Kotlin/Android to Architect Scalable iOS Apps in SwiftUIAfter looking around, I discovered the Android world. I was surprised by what Google provides for developers compared to Apple. Android developers have clear guides and patterns, and most importantly, real-world examples that show how to structure production apps and not just toy projects. Adjusting line height in SwiftUI on iOS 26On iOS 26, we have a new SwiftUI modifier, lineHeight(_:), for adjusting the distance between the baselines of two subsequent lines of text. This modifier accepts a new AttributedString attribute, AttributedString.LineHeight, which can also be used separately for styling attributed strings. Mastering Geometry in SwiftUI - GeometryReader, GeometryProxy & onGeometryChangeSwiftUI’s layout system is powerful but often misunderstood. Most of the time stacks and spacers are enough, but when you need things like scroll-based effects, collapsing headers, or custom layouts, you need to understand geometry. This article walks through how SwiftUI layout actually works and explores the tools that let you inspect it — including GeometryReader, GeometryProxy, coordinate spaces, and modern APIs like onGeometryChange. SwiftUI ProAn agent skill to help you write smarter, simpler, and more modern SwiftUI, including guidance on API usage, design, performance, and accessibility. |