This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // | |
| // TestClass.swift | |
| // TestProject | |
| // | |
| // Created by hgkwon on 2022/07/07. | |
| // | |
| import Foundation | |
| /** |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @available(iOS 13.0, *) | |
| func makeSecure(window: UIWindow) { | |
| DispatchQueue.main.async { | |
| print("make window secure") | |
| let field = UITextField() | |
| field.isSecureTextEntry = true | |
| window.addSubview(field) | |
| window.layer.superlayer?.addSublayer(field.layer) | |
| field.layer.sublayers?.last?.addSublayer(window.layer) |
OlderNewer