Makes math operations in Swift easier by adding automatic casting between Int, Float, CGFloat, and Double. Use with care.
Makes math operations in Swift easier by adding automatic casting between Int, Float, CGFloat, and Double
Instead of:
var sum = CGFloat(myInt) + CGFloat(myFloat)
Just do:
var sum = myInt + myFloat
That’s pretty much it