Excluding selected Views from screen recording using Replaykit

I have in app screen recording functionality in my app and while recording I want to exclude PHPickerViewController/UIDocumentPickerViewController from being recorded if opened in the app during recording. How can I achieve this ? Is there any configuration available in ReplayKit using which I can achieve this behaviour?

Can someone please help here and provide some guidance here.

Excluding selected Views from screen recording using Replaykit
 
 
Q