Thank you - the:
let context = CoreDataManager.shared.context
was the solution. I needed only this to fix this error.
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: