Tweak password font

This commit is contained in:
Bob Sun 2017-10-07 23:05:26 -07:00
parent 6ea47766bc
commit 3605e59c30
4 changed files with 8 additions and 5 deletions

View file

@ -109,6 +109,8 @@ public class Utils {
if NSCharacterSet.decimalDigits.contains(element) {
charColor = Globals.digitColor
} else if !NSCharacterSet.letters.contains(element) {
charColor = Globals.symbolColor
} else {
charColor = Globals.letterColor
}
attributedPassword.addAttribute(NSAttributedStringKey.foregroundColor, value: charColor, range: NSRange(location: index, length: 1))