Post

Replies

Boosts

Views

Activity

Reply to Trying to populate widget using custom intent and Core Data cause the widget to crash when rendering SwiftUI Views
@bhansmeyer It is a Core Data entity that correctly contains "content", among many other attributes Entity: Item Attributes: checked: Boolean, content: String, reminder: Date, starred: Boolean, timestamp: Date. Relationship: list -> Destination: TaskLists -> Inverse: items_ . This error is more likely due to the fact that initially [Item]() is empty so doesn't contain any item.content and thats why it throws this error. But I did a if entry.items.count > 0 before the ForEach as well and it didn't solve the problem.
May ’21