I’m just following Chris’ youtube tutorial and when I type in this code -
‘’’
if leftNumber > rightNumber {
print(“Left side wins”)
leftScore += 1
leftScoreLabel.text = String(leftScore)
}
else if leftNumber < rightNumber {
print(“Right side wins”)
rightScore += 1
rightScoreLabel.text = String(rightScore)
}
‘’’
- I get an error saying that “Value of type ‘UIStackView?’ has no member ‘text’”
Any ideas on what I am doing wrong? I went through line for line and couldn’t figure it out. Thanks!