New Challenges for Creators' Rights in the AI Era

Fatbobman's Swift Weekly #039

Jul 8, 2024

Recently, the head of Microsoft's AI department made a controversial statement in an interview, suggesting that any content published on the open web could be considered "free software"...

Get weekly handpicked updates on Swift and SwiftUI!
Jul 12, 2024
Techniques for Automatic Merging of String Catalogs in Multi-Package Monorepos

By Luca Ban

Announced at WWDC23, Swift introduces an amazing new way for internationalization (i18n) for Swift apps and packages with String Catalogs. This guide covers the basics of getting started with String Catalogs in a new project: WWDC23 String Catalogs. However, it doesn't touch on a use case where there is a single monorepo with multiple Swift packages (and there are no sample projects). In this article, we'll explore how to set up your monorepo so each Swift Package can have its own String Catalog, which gets auto-merged into one when building your host app, without breaking a sweat!

Jul 10, 2024
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.

Swifter and Swifty: Mastering the Swift Testing Framework

Since the inception of the Swift language, XCTest has been the preferred testing framework for the majority of Swift developers. However, deeply rooted in Objective-C, its API design heavily borrows from the traditions of that language, failing to fully reflect the modern best practices of Swift programming. In some respects, this has even become a barrier to further development. To overcome these limitations, Apple officially introduced Swift Testing at WWDC 2024—a new testing framework specifically designed for the Swift language. This framework has been integrated into Xcode 16 and positioned as the official testing tool of choice. In this article, we will delve into the features, usage, and unique aspects of the Swift Testing framework, analyzing how it helps developers write test codes faster (Swifter) and more in line with Swift programming habits (Swifty).

Jun 26, 2024
The Evolution of SwiftUI Scroll Control APIs and Highlights from WWDC 2024

At WWDC 2024, Apple once again introduced a series of remarkable new APIs for SwiftUI's ScrollView component. These new features not only enhanced developers' ability to control scrolling behaviors but also reflected the ongoing evolution of the SwiftUI framework's design philosophy. This article will explore these latest scroll control APIs and review the development of all significant APIs related to scroll control since the inception of SwiftUI. Through this micro view, we will reveal the changes in SwiftUI's design style over the past few years and the underlying macro design trends.

Jun 19, 2024
Creating Stunning Dynamic Text Effects with TextRenderer

The Text component is extremely common in SwiftUI applications. Over the past few years, despite Apple continually expanding its capabilities, developers have been eager for deeper control over this component. At WWDC 2024, SwiftUI introduced the TextRenderer protocol, granting developers new powers to adjust the rendering performance of the Text component, making it possible to achieve many previously unimaginable effects. This article will delve into this new feature.

Jun 17, 2024
Impressions on WWDC 2024

WWDC 2024 has successfully concluded. Throughout this week, Apple showcased a series of new features and functionalities that will significantly impact the future. I will share my thoughts and feelings about several aspects that particularly resonated with me, reflecting on the highlights of this WWDC.

SwiftData in WWDC 2024: The Revolution Continues, Stability Still Awaits

Since its debut last year, SwiftData has become a focal framework that has garnered significant attention from developers. With the arrival of WWDC 2024, there is widespread anticipation for breakthroughs in functionality, performance, and stability in SwiftData. This article will review the performance of the latest version of SwiftData and share the complex emotions I experienced during my first encounter with the new version: shock, joy, disheartened, and perplexed.

Before WWDC 2024: The Future Potential and Real Challenges of SwiftData

At the 2023 Worldwide Developers Conference (WWDC), Apple launched the highly anticipated new generation data management framework — SwiftData. As the successor to Core Data, can SwiftData play a key role in the Apple ecosystem? With WWDC 2024 approaching, this article will evaluate the overall performance of SwiftData since its initial release during the Xcode 15 period (i.e., its first major version), and provide a forecast of its future development.