Seeming inconsistency in Swift – why does this work with CGPoint but not with CGFloat?
extension CGPoint { var coordx : String { let xx = round(x * 10 * scaleFactor)/10 //No problem here return “(xx)” } var coordy : String { let yy = round(y * 10 * scaleFactor)/10 //No problem here return “(yy)” } } extension CGFloat { var scaled : String { let yy = round(self * […]