Is the new (iOS 18) SwiftData #Unique macro compatible with iCloud

SwiftData offers a #Unique macro as of iOS 18, see here: https://developer.apple.com/documentation/swiftdata/unique(_:)

I was wondering if that one might work when the DB is backed by CloudKit.

Answered by Frameworks Engineer in 790078022

The same restrictions that existed before with a DB backed by CloudKit still apply with the introduction of the #Unique macro.

Accepted Answer

The same restrictions that existed before with a DB backed by CloudKit still apply with the introduction of the #Unique macro.

Is the new (iOS 18) SwiftData #Unique macro compatible with iCloud
 
 
Q