[Solved] iOS – Cannot assign value of type ‘Double’ to type ‘Float’
First, use camelCase for naming in Swift. lowerCamelCase for constants/variables/functions and UpperCamelCase for types (classes, …) MAX_RADIUS_IN_MILE -> maxRadiusInMile Now to your problem. Error is clear, you have constant of type Double (if you don’t specify type of decimal number, compiler give it type Double), but assigning maximumValue requires type Float. What now? One solution … Read more