How do I transform the following ObjectiveC statements into SWIFT:
UInt32 *pixels; pixels = (UInt32 *) calloc(height * width, sizeof(UInt32));
For Swift-3 : UnsafeMutablePointer is replace by UnsafeMutableRawPointer
var pixels = UnsafeMutableRawPointer( calloc(height * width, MemoryLayout.size) )
Reference