diff --git a/pass/Base.lproj/Main.storyboard b/pass/Base.lproj/Main.storyboard
index a969437..ebb1c70 100644
--- a/pass/Base.lproj/Main.storyboard
+++ b/pass/Base.lproj/Main.storyboard
@@ -198,7 +198,7 @@
-
+
@@ -222,7 +222,7 @@
-
+
@@ -333,7 +333,6 @@
-
@@ -363,7 +362,6 @@
-
@@ -392,7 +390,6 @@
-
@@ -562,7 +559,6 @@
-
@@ -596,7 +592,6 @@
-
@@ -815,7 +810,7 @@
-
+
@@ -858,7 +853,7 @@
-
+
K7PBbkoaJf6mLyVX3EBU
@@ -883,7 +878,7 @@ Secret Question 1: What is your childhood best friend's most bizarre superhero f
-
+
@@ -1004,7 +999,6 @@ Secret Question 1: What is your childhood best friend's most bizarre superhero f
-
@@ -1351,7 +1345,6 @@ Secret Question 1: What is your childhood best friend's most bizarre superhero f
-
@@ -1389,7 +1382,6 @@ Secret Question 1: What is your childhood best friend's most bizarre superhero f
-
@@ -1527,7 +1519,6 @@ Secret Question 1: What is your childhood best friend's most bizarre superhero f
-
@@ -1600,7 +1591,6 @@ Secret Question 1: What is your childhood best friend's most bizarre superhero f
-
@@ -1633,7 +1623,6 @@ Secret Question 1: What is your childhood best friend's most bizarre superhero f
-
diff --git a/pass/Controllers/PasswordEditorTableViewController.swift b/pass/Controllers/PasswordEditorTableViewController.swift
index 7980127..23e6809 100644
--- a/pass/Controllers/PasswordEditorTableViewController.swift
+++ b/pass/Controllers/PasswordEditorTableViewController.swift
@@ -125,6 +125,9 @@ class PasswordEditorTableViewController: UITableViewController, FillPasswordTabl
additionsCell = tableView.dequeueReusableCell(withIdentifier: "textViewCell", for: indexPath) as?TextViewTableViewCell
additionsCell?.contentTextView.delegate = self
additionsCell?.setContent(content: cellData[PasswordEditorCellKey.content] as? String)
+ if #available(iOS 13.0, *) {
+ additionsCell?.contentTextView.textColor = .label
+ }
return additionsCell!
case .deletePasswordCell:
return deletePasswordCell!
diff --git a/pass/Controllers/RawPasswordViewController.swift b/pass/Controllers/RawPasswordViewController.swift
index 4f258e0..5b49b33 100644
--- a/pass/Controllers/RawPasswordViewController.swift
+++ b/pass/Controllers/RawPasswordViewController.swift
@@ -20,5 +20,8 @@ class RawPasswordViewController: UIViewController {
rawPasswordTextView.textContainer.lineFragmentPadding = 0
rawPasswordTextView.textContainerInset = .zero
rawPasswordTextView.text = password?.plainText
+ if #available(iOS 13.0, *) {
+ rawPasswordTextView.textColor = .label
+ }
}
}
diff --git a/pass/Views/LabelTableViewCell.swift b/pass/Views/LabelTableViewCell.swift
index 033f0a5..36b53cb 100644
--- a/pass/Views/LabelTableViewCell.swift
+++ b/pass/Views/LabelTableViewCell.swift
@@ -119,6 +119,7 @@ class LabelTableViewCell: UITableViewCell {
if type == .password {
if cellData?.content.isEmpty == false {
contentLabel.text = Globals.passwordDots
+ contentLabel.textColor = Globals.black
} else {
contentLabel.text = ""
}
diff --git a/pass/Views/TextViewTableViewCell.xib b/pass/Views/TextViewTableViewCell.xib
index 6b64660..99219d2 100644
--- a/pass/Views/TextViewTableViewCell.xib
+++ b/pass/Views/TextViewTableViewCell.xib
@@ -20,7 +20,7 @@
-
+
diff --git a/passKit/Helpers/Globals.swift b/passKit/Helpers/Globals.swift
index 4d3b1a0..be36b35 100644
--- a/passKit/Helpers/Globals.swift
+++ b/passKit/Helpers/Globals.swift
@@ -41,11 +41,14 @@ public class Globals {
public static let passwordFont = UIFont(name: "Courier-Bold", size: UIFont.labelFontSize - 1)
// UI related
- public static let red = UIColor(red:1.00, green:0.23, blue:0.19, alpha:1.0)
- public static let blue = UIColor(red:0.00, green:0.48, blue:1.00, alpha:1.0)
- public static let letterColor = UIColor(red:40/255.0, green:42/255.0, blue:54/255.0, alpha:1.0)
- public static let symbolColor = UIColor(red:200/255.0, green:40/255.0, blue:41/255.0, alpha:1.0)
- public static let digitColor = UIColor(red:66/255.0, green:113/255.0, blue:174/255.0, alpha:1.0)
+ public static let red = UIColor.systemRed
+ public static let blue = UIColor.systemBlue
+ public static let black: UIColor = {
+ if #available(iOSApplicationExtension 13.0, *) {
+ return UIColor.label
+ }
+ return UIColor.black
+ }()
public static let tableCellButtonSize = CGFloat(20.0)
private init() { }
diff --git a/passKit/Helpers/Utils.swift b/passKit/Helpers/Utils.swift
index dff3c54..671a15e 100644
--- a/passKit/Helpers/Utils.swift
+++ b/passKit/Helpers/Utils.swift
@@ -22,11 +22,11 @@ public class Utils {
for (index, element) in plainPassword.unicodeScalars.enumerated() {
var charColor = UIColor.darkText
if NSCharacterSet.decimalDigits.contains(element) {
- charColor = Globals.digitColor
+ charColor = Globals.red
} else if !NSCharacterSet.letters.contains(element) {
- charColor = Globals.symbolColor
+ charColor = Globals.blue
} else {
- charColor = Globals.letterColor
+ charColor = Globals.black
}
attributedPassword.addAttribute(NSAttributedString.Key.foregroundColor, value: charColor, range: NSRange(location: index, length: 1))
}