UITraitCollection.sceneCaptureState is not working when use iPhone mirroring with iOS 18 beta and MacOS sequoia beta

UITraitCollection.sceneCaptureState does not work when using iPhone mirroring on iOS 18 beta and MacOS sequoia beta. The path to reproducing this bug is as follows:

  1. Set the default language of macOS to Korean
  2. Change the default language setting in macOS to English
  3. Use the iPhone Mirroring app

In situations like this, sceneCaptureState of UITraitCollection.current appears as inactive. This can lead to serious bugs and abuse in many applications listed on the App Store.

UITraitCollection.current.sceneCaptureState
Answered by Frameworks Engineer in 801522022

This is expected. iPhone Mirroring is not treated as screen recording, but if you start a screen recoding session on your Mac, you should see the capture state updated to match that.

This is expected. iPhone Mirroring is not treated as screen recording, but if you start a screen recoding session on your Mac, you should see the capture state updated to match that.

UITraitCollection.sceneCaptureState is not working when use iPhone mirroring with iOS 18 beta and MacOS sequoia beta
 
 
Q