I want to export the SCNCamera video in SceneKit as a png image

I am creating a 360-degree viewer for iPhone using Scenekit,

but I want to save the SCNCamera video as an image. Is there any good way?