I totally missed the first “Challenge Day” (day 19) where you build an app from scratch… I thought it was a link to the project 1 challenges 😬
I decided to do a temperature converter implementing the
The head scratcher was initially returning a type
Measurement<UnitTemperature> from my
struct due to complaints from Swift, typecasting got me nowhere also. The trick ended up being to switch the return type back to
Double and call value on my return variable like
return convertedTemp.value so that I could format the output to 1 decimal point and not get all the extra NS output data.