SwiftUI Weekly - Issue #158
The curated collection of links about SwiftUI. Delivered every Monday.
Reading
Mastering StoreKit 2. SwiftUI view modifiers.
We talked a lot about StoreKit 2 in this series of posts. This week, we will finalize the series by covering the set of view modifiers StoreKit 2 provides us to use in SwiftUI views.
Exploring the new Preview Macro with SwiftUI and UIKit
Imagine that you have several view configurations and you want to know how they look in very specific scenarios.
Showing a SwiftUI sheet from a Mac Menu
Most articles on showing sheets in SwiftUI apps show an example of a button with a .sheet
modifier that shows the sheet. But if you try to apply the example to a menu in a Mac app.
Enabling drag reordering in SwiftUI lazy grids and stacks
While SwiftUI’s List
component allows users to drag to reorder items within the list, the LazyVGrid
, LazyHGrid
, LazyVStack
and LazyHStack
components currently lack this functionality. Let’s take a look at how to implement it from scratch.
How To Visualize The Safe Area
When we draw a SwiftUI view on screen, it only fills the safe area by default.
Videos
Selection and PieCharts in iOS 17
In this video I am going to introduced you to a couple of new features of the charts framework introduced in iOS 17 We will take a look at the new chartSelection method first on a BarChart which has greatly simplified our ability to select and access chart information.