Can I use the Unique macro with CloudKit?
Asked on 04/11/2025
1 search
The Unique macro is a feature of SwiftData, not CloudKit. It allows you to define unique constraints on your model's properties to ensure that certain combinations of properties remain unique within your data model. This is useful for avoiding duplicates and managing data integrity within your app's local data storage. For more details, you can refer to the session What’s new in SwiftData at the timestamp 02:43.

What’s new in SwiftUI
Learn how you can use SwiftUI to build great apps for any Apple platform. Explore a fresh new look and feel for tabs and documents on iPadOS. Improve your window management with new windowing APIs, and gain more control over immersive spaces and volumes in your visionOS apps. We’ll also take you through other exciting refinements that help you make expressive charts, customize and layout text, and so much more.

Port advanced games to Apple platforms
Discover how simple it can be to reach players on Apple platforms worldwide. We’ll show you how to evaluate your Windows executable on Apple silicon, start your game port with code samples, convert your shader code to Metal, and bring your game to Mac, iPhone, and iPad. Explore enhanced Metal tools that understand HLSL shaders to validate, debug, and profile your ported shaders on Metal.

Platforms State of the Union
Discover the newest advancements on Apple platforms.