I am new to swift and creating a music theory app. To make it more readable, I would like the colour of each topic to change depending on the difficulty (ie 1 = green, 2 = orange, 3 = red). However, I cannot reference another variable (difficulty) when initialising the variable 'colour' using my function. I'm not sure how to fix this error: "cannot find 'difficulty' in scope" on lines 36-39. Thanks
1
1
411