Need to hide the content from video recording in swiftui

In my macos app with swiftui i need to hide the content from screen recoding and screen sharing from own device. its not the matter from external device. i used sharingtype = .none for hiding content from screen shot. but didnt got any answer for screen recording.

Do anyone having idea?

Thanks.

Need to hide the content from video recording in swiftui
 
 
Q