带有counter = counter + 1
的部分中的预期声明
@IBAction func textChange(_ sender: Any) {
print("you coded a button")
if iAmADeveloper == false {
theMessage.text = "I'm an App Developer!"
iAmADeveloper = true
}else
{theMessage.text = "I'm going to be an App Developer!"
iAmADeveloper = false}
}counter = counter + 1
print("counter value is: \(counter + 1)")
counterDisplay.text = "counter: \(counter)"
}