I’m on page 205 of the tutorial. However, when i try to run the app, I get an error:
Could not cast value of type ‘_SwiftTypePreservingNSNumber’ (0x11011ea48) to ‘Checklists.Checklist’ (0x10f4f2e70).
the error happens in “override func prepare” in AllListsViewController.swift. Specifically the line:
controller.checklist = sender as! Checklist
When I hover over the line, it seems to be saying that controller.checklist is nil and that’s causing the crash. But I don’t understand why. I’ve tried going through the code to see if I’ve made any typos, but I haven’t been able to find any. Can anyone help? Thanks!