@DTS Engineer as this is a major security flaw which has not been considered by Apple - is there anyway you can guide us on how to find out if Screen Mirroring is active on the device via any API does not matter if it's number of keyboards etc. Just something to give us a developers a way to ensure the safety of our device whilst Apple re-evaluate the security of Screen Mirroring.
At present Screen Mirroring is NOT honouring the Secure Text Field component which has been used by many developers over the years to ensure the safety and security of our apps.