Converting code is hard enough. Why run the risk of missing a crucial condition in a long if-statement? Or running into floating point errors caused by using the wrong numeric types?
The latest release of the Swiftify Objective-C to Swift converter handles converting complex expressions so you don’t have to. These are some of the complex cases we’ve handled:
Explicit Type Conversion for Numerics
In Objective-C, you can perform operations on two different numeric types. For instance, adding a
double to a
double d = 1.0;
float f = 2.0;
double d2 = d + f;
Please sign in to leave a comment.