I am working on one project and need to take refrence from react code. But I don't know react. Can anyone help me to convert following code in to swift language.?It would be great if anyone can help me out.
stringToFloat(stringData){ buf = Buffer.from(stringData, 'ascii'); hex_string = buf.toString('hex'); float_num = Buffer(hex_string,'hex').readFloatLE(0); return float_num; }