After completing the code for Table View Diffable Data Source, I got the following errors
The starterData array - all elemets
//RayWenderlichBeginnerCourse/Lessons/MyLibrary_TableViewCtlr/MyLibrary_TableViewCtlr/Library.swift:33:54: Missing argument for parameter ‘readMe’ in call
//RayWenderlichBeginnerCourse/Lessons/MyLibrary_TableViewCtlr/MyLibrary_TableViewCtlr/Library.swift:109:81: Value of type ‘Book’ has no member ‘id’
We did not give any default value to Book.readMe in this chapter. Also we did not define an id property for Book. I made it work by providing readMe: ‘true’ for all elements of starterData. Secondly I deleted the loadBooks, saveBooks methods as they are not being used in this chapter. I guess the Diffable Data Source Materials are out of sync for this chapter.
I moved ahead with the next chapter Adding and Deleting rows. I had to blindly make the changes in Book.swift, which I could not find where they are discussed in the earlier tutorials. Midway through the chapter after Save and Cancel implementation is completed, the code throws several errors in compilation. Now I’m stuck. Please help.