@LombaX's solution didn't work for me in the latest build, Xcode Beta5. Here's what did work:
let imageBuffer : CVImageBuffer = CMSampleBufferGetImageBuffer(sampleBuffer)let srcPtr = Unmanaged.passUnretained(imageBuffer).toOpaque()let pixelBuffer = Unmanaged<CVPixelBuffer>.fromOpaque(srcPtr).takeUnretainedValue()