UIWindowScene.screen.isCaptured property returned false if the recording is already happening and launch the app in iOS 18 Beta 4.
I also tried with UIScreen.main.isCapture (also returned false) and
sceneCaptureState (UITraitCollection) (which returned .inactive)
The flag returned true if the app is already opened in the foreground or put it in the background when the screen recording starts.
Is it a bug in iOS 18 Beta or is there any other API I need to use it for iOS 18?