How to record video in ARView(Reality Kit)?

I'm using ReplayKit RPScreenRecorder for screen recorder but it's recording whole screen, which is not my requirement, my requirement to record ARView area only

I'm using ReplayKit RPScreenRecorder but it's recording whole screen, which is not my requirement, my requirement is to record ARView area only

How to record video in ARView(Reality Kit)?
 
 
Q