'swift Xcode Secure Text Entry Asterisk not show when Screen Mirroring / Recording

I have checked the Secure Text Entry and entered "pwdTextfield.isSecureTextEntry = true" as the code. Therefore, I can see the asterisk well inside password text field of my app.

However, just by mirroring the screen or recording the screen, it only becomes white and the asterisk is invisible. Is there anyone who knows how to solve it?



Solution 1:[1]

This is powerful of UITextField with secure field enable provided by Apple. It hides data for screenshots and video records to preventing sensitive data leakage.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Sereysophea Eap