Update Core Data Entry/Record

I am creating a to-do list app for my self and playing around with swiftUI, but I can't figure out how to edit an attribute of a record (if the entry is complete or not)

I am trying to mark the record as complete from inside a modal/sheet view and I have access to the UUID of the record, but each time I try to fetch request all entries with UUID equal to the one I have from main view, it says I can't access a value that hasn't been assigned because I am importing it from another view that got the UUID from an original fetchRequest.

Btw I'm trying to do this in SwiftUI which is why I'm asking here because online it's all answers in how to do it with earlier versions of Swift.

Thanks,
roroCoder
Update Core Data Entry/Record
 
 
Q