Error an Todo App with Core Data

I receive an error called “Use of unresolved identifier ‘Todo’”.
help please.

//: Mark: - Save Button

            Button (action:  {

if self.name != “” {

                let todo  = Todo(context: self.managedObjectContext) => "Use of unresolved identifier 'Todo'"

                todo.name = self.name
                todo.priority = self.priority

Can you provide a bit more of your SwiftUI code so that it gives a better idea of what you are trying to do.