[Solved] How do I declare a static const char array in Swift? [closed]
In Swift, a UInt8 is the corresponding type to C’s unsigned char, so this would create a constant array of UInt8 values: let gSalt:[UInt8] = [0xf4, 0x28, 0x32, 0xab, 0x4b, 0xa1, 0xcc, 0x43] In Swift, you should just declare this in whatever scope you need it. If it is only needed by the methods of … Read more