Hello,
Working my way through the book. The second project is a lot harder than Bull’s Eye!
I have a problem in chapter 16, where the book says:
➤ Add the prepare(for:sender:) method to AllListsViewController.swift:
// MARK:- Navigation
override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
if segue.identifier == “ShowChecklist” {
let controller = segue.destination
as! ChecklistViewController
controller.checklist = sender as? Checklist
} }
When I do this, I get the error “Value of type ‘ChecklistViewController’ has no member ‘checklist’”.
I won’t pretend I understand completely what’s happening in this chapter – I need to go back and redo the entire chapter once I finish, but has anyone else encountered this error?