Chapter 10 p 346, 347 "'checklistItem' is a let constant

                 .onTapGesture
                {
                    if checklistItem.isChecked == true       //No error in this line
                    {
                       //Error in line below: "cannot assign to property: 'checklistItem' is a 'let' constant"
                        checklistItem.isChecked = false   
                    }
                    else
                    {
                         //Error in line below: "cannot assign to property: 'checklistItem' is a 'let' constant"
                        checklistItem.isChecked = true
                    }
                }

Sorry… an explanation of the error follows in the text.

@jsbotts73 Do you still have issues with this?

This topic was automatically closed after 166 days. New replies are no longer allowed.