Reply to SwiftData ModelContainer can not be created in iOS 17.4 Beta In case anyone else stumbles across this, I found the following syntax resolved the error for me: @Relationship(inverse: \Item.category) var items: [Item]? = [] var category: ItemCategory? Seems to work so I guess it's correct? 🤷 App & System Services iCloud & Data May ’24