I'm looking for a way to prevent my app from displaying in screenshots and screen recordings. There appears to be plenty of options for UIKit/iOS but nothing I can find for macOS.
userDidTakeScreenshotNotification
@Environment(.sceneCaptureState) private var captureState
Obviously it's possible though as I remember back in the day you couldn't take screenshots of the DVD Player etc.