SwiftUI Weekly - Issue #194
The curated collection of links about SwiftUI. Delivered every Monday.
Reading
Introducing Entry macro in SwiftUI
The Swift macros feature became very popular last year in the community and inside Apple. As a result, the SwiftUI framework introduced a set of macro types that helped us reduce boilerplates in our codebases. This week, we will talk about the Entry macro type.
Using PreviewModifier to build a previewing environment
Xcode 16 and iOS 18 come with a feature that allows us to build elaborate preview environments using a new PreviewModifier
protocol. This protocol allows us to define objects that can create a single context or environment that’s cached and used across your SwiftUI previews.
Blend Modes in SwiftUI
Blend modes play a crucial role in digital design, enabling designers to easily create complex visual effects like overlays and textures. They're essential for tasks like photo manipulation, creating lighting effects, and adding depth to images.
List or LazyVStack: Choosing the Right Lazy Container in SwiftUI
In the world of SwiftUI, List
and LazyVStack
, as two core lazy containers, offer robust support for developers to display large amounts of data. However, their similar performance in certain scenarios often causes confusion among developers when making a choice. This article aims to analyze the characteristics and advantages of these two components to help you make a better decision.
Creating advanced hover effects in visionOS
Learn how to create great hover effect experiences for visionOS applications.
Videos
Zoom Transitions in SwiftUI
In this video, I'll teach you how to use SwiftUI to create beautiful zoom transitions, just like the Snapchat transitions, with the new iOS 18 APIs.