New to Swift and Xcode – working on my first app and have a function which carries out a number of calculations and outputs a Double – this works fine if I do a print(function).
When I then try and assign the output of the function to a variable, I get the error “Cannot assign value of type ‘(Double, Double, Double)’ to type ‘Double'”
I searched around, but can’t find anything useful.
Any suggestions much appreciated.
Powered by WPeMatico