Tutotial 2 - Page 162 PDF book. Err in didFinishAdding - Argument passed to call to take no arguments

Hi, I´m habing a trouble with the line let checklist = Checklist(name: textField.text!), because xCode says: Argument passed to call to take no arguments

@IBAction func done() {
if let checklist = checklistToEdit {
checklist.name = textField.text!
delegate?.listDetailViewController(self, didFinishEditing: checklist)
} else {
let checklist = Checklist(name: textField.text!)
delegate?.listDetailViewController(self, didFinishAdding: checklist)
}
}

Thanks for your help

Did you add the init(name) to Checklist.swift?

Hi

Thanks, I miss that lines.

Have a good weekend