make variable name simple
This commit is contained in:
parent
bb654849af
commit
8e580e3dad
2 changed files with 4 additions and 4 deletions
|
|
@ -76,9 +76,9 @@ class LabelTableViewCell: UITableViewCell {
|
|||
// draw all punctuation characters in the password into blue
|
||||
for (index, element) in plainPassword.unicodeScalars.enumerated() {
|
||||
if NSCharacterSet.decimalDigits.contains(element) {
|
||||
attributePassword.addAttribute(NSForegroundColorAttributeName, value: Globals.myRedColor, range: NSRange(location: index, length: 1))
|
||||
attributePassword.addAttribute(NSForegroundColorAttributeName, value: Globals.red, range: NSRange(location: index, length: 1))
|
||||
} else if NSCharacterSet.punctuationCharacters.contains(element) {
|
||||
attributePassword.addAttribute(NSForegroundColorAttributeName, value: Globals.myBlueColor, range: NSRange(location: index, length: 1))
|
||||
attributePassword.addAttribute(NSForegroundColorAttributeName, value: Globals.blue, range: NSRange(location: index, length: 1))
|
||||
}
|
||||
}
|
||||
// set contentLabel
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue