UITextField's property isSecureTextEntry when turned on prevents user for taking screenshot of those textfield. I think they might use this.
https://developer.apple.com/documentation/uikit/uitextinputtraits/issecuretextentry
Topic:
UI Frameworks
SubTopic:
UIKit
Tags: