I don't understand why this is not allowed in Swift:
let graphPointCircleDiameter: CGFloat = 5.0
let graphPointCircleDisplacement: CGFloat = graphPointCircleDiameter/2
I get the error:
Instance member 'graphPointCircleDiameter' cannot be used on type NameOfVC.
Can anyone explain why a static "let" variable cannot be referenced by another variable on the global scope in Swift?
Thank you!