I am toward the end of chapter 4 where you are supposed to determine the maximum radius to start drawing the concentric circles.
For the Objective C code:
I have tried the following Swift code:
but I get the error “Could not find an overload for ‘/’ that accepts the supplied arguments.” I thought this might be due to type differences in the expression, so tried converting the hypot to a float:
but I still get the same error. Any ideas how to fix?