SwiftUI Weekly - Issue #184
The curated collection of links about SwiftUI. Delivered every Monday.
Reading
Content margins in SwiftUI
SwiftUI introduced a set of view modifiers, allowing us to manage the safe area in our views efficiently. In many cases, the safe area is where you want to put your content. Today, we will learn about the new content margin concept that SwiftUI introduced and how it differs from the safe area.
The ContentUnavailableView In SwiftUI
In WWDC 2023 and among other advancements and announcements about SwiftUI, Apple made available a particular view called ContentUnavailableView. The sole purpose of it is to be displayed when there is actual data to show using an easy and straightforward API.
How to Mirror Any View in SwiftUI?
Hallo vrienden en familie, Leo hier. Today, we will talk about how to invert or mirror any view in SwiftUI.
In-Depth Exploration of Overlay and Background Modifiers in SwiftUI
In the toolbox of SwiftUI, overlay
and background
are two extremely useful view modifiers that play an indispensable role in various development scenarios. This article will delve into the unique attributes of these two modifiers, clarify their fundamental differences from ZStack
, and identify the scenarios they are best suited for.
Hot Reloading In SwiftUI
Previews in Xcode are kind of nice, when they work. But for me they are often slow or stop working after a few minutes.
SwiftUI Pie Charts
Apple added pie charts to SwiftUI in iOS 17. Here’s an example to get you started.