Error: Type "ToDo' has no members

I am working on the guided project in Chapter 4 of App Developement with Swift. I have entered the following code from the tutorial:


override func viewDidLoad() {

super.viewDidLoad()

if let savedToDos = ToDo.loadToDos() {

todos = savedToDos

} else {

todo = ToDo.loadSampleToDos()

}

}


I get a Type 'ToDo' has no member 'loadToDos' and a Type 'ToDo' has no member 'loadSampleToDos' error and have searched for an answer but have found nothing that seems to apply. Could someone direct me to where I should look or suggest a solution? Thanks in advance.

Replies

If this question is still actual, then see your structure ToDo. Perhaps you have either not defined or defined incorrectly these functions - loadToDos() and loadSampleToDos().


You can show your code here to find potential mistake together.