Cant access Relationship of Core Data Entity (SwiftUI)

Hello guys,

I have problems with this issue since weeks now, and I would be so thankful for someone to help me out!

I have 2 Core Data Entitys:

  • Bill
  • Items

1 Bill can have many Items

Now in my View I get passed a bill entity and want to access its items, but I cant do so.

When debuging, bill.items?.count always is 0 and looping over bill.items also doesnt work.

Can someone please tell me how to do it?

Appreciate it so much!!

Cant access Relationship of Core Data Entity (SwiftUI)
 
 
Q