Fix the color the passwords

- in the password editing view
- color of some characters
This commit is contained in:
Yishi Lin 2017-03-24 01:34:45 +08:00
parent 2899f05a73
commit ca66cd8e6c
3 changed files with 9 additions and 1 deletions

View file

@ -33,6 +33,11 @@ class FillPasswordTableViewCell: ContentTableViewCell {
self.delegate?.generateAndCopyPassword()
}
// re-color
@IBAction func textFieldDidChange(_ sender: UITextField) {
contentTextField.attributedText = Utils.attributedPassword(plainPassword: sender.text ?? "")
}
override func getContent() -> String? {
return contentTextField.attributedText?.string
}