When changing the value of secureTextEntry on a UITextField the font changes. Does anybody know why and how to change this behaviour or how to work around it? No custom fonts involved, only system font.
Code:
let image: UIImage?
if self.passwordField.secureTextEntry == true {
let content = self.passwordField.text
self.passwordField.secureTextEntry = false
[...]
} else {
self.passwordField.secureTextEntry = true
[...]
}
Dumped self.passwordField.font
on changes and doesn't seem to be changed