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