Coding in Swift and get the above error...
Is the message masking something else OR can you really not add two CGFloat operands? If not, why (on earth) not?
It's absolutely possible, adding two CGFloat variables using the binary operator '+'. What you need to know is the resultant variable is also a CGFloat variable (based on type Inference Principle).
var value1 : CGFloat = 12.0 var value2 : CGFloat = 13.0 var value3 = value1 + value2 println("value3 \(value3)") //The result is value3 25.0, and the value3 is of type CGFloat.