Skip to content

Commit fbb9f69

Browse files
committed
update readme
1 parent 74dc862 commit fbb9f69

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

README.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,16 @@ import UIKit
5555

5656
extension UIColor {
5757
static var primaryText: UIColor {
58-
UIColor { traitCollection -> UIColor in
59-
if traitCollection.userInterfaceStyle == .dark {
60-
return UIColor(red: 0.000, green: 0.000, blue: 0.000, alpha: 1.000)
61-
} else {
62-
return UIColor(red: 1.000, green: 1.000, blue: 1.000, alpha: 1.000)
58+
if #available(iOS 13.0, *) {
59+
return UIColor { traitCollection -> UIColor in
60+
if traitCollection.userInterfaceStyle == .dark {
61+
return UIColor(red: 0.000, green: 0.000, blue: 0.000, alpha: 1.000)
62+
} else {
63+
return UIColor(red: 1.000, green: 1.000, blue: 1.000, alpha: 1.000)
64+
}
6365
}
66+
} else {
67+
return UIColor(red: 1.000, green: 1.000, blue: 1.000, alpha: 1.000)
6468
}
6569
}
6670
static var backgroundVideo: UIColor {

0 commit comments

Comments
 (0)