Does anyone know how to add binary code to a string in swift?
I'd like to convert from ObjC to Swift someing like this
#define PRINTER_CMD_SMALLTEXT @"\x1b\x21\x01\x1b\x33\x0a"to this...
let PRINTER_CMD_SMALLTEXT: String = "\x1b\x21\x01\x1b\x33\x0a"but \x is not accepted