MTLCommandBuffer build error in XCode 12 GM

MTLCommandBuffer present(MTLDrawable, afterMinimumDuration: CFTimeInterval) is not found in XCode 12 GM. The following function of MTLCommandBuffer throws compilation error.

Code Block
commandBuffer.present(drawable, afterMinimumDuration: 1.0/Double(self.preferredFramespersecond)


Incorrect argument label in call (have ':afterMinimumDuration:', expected ':atTime:')

What is the fix?

MTLCommandBuffer build error in XCode 12 GM
 
 
Q