File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed
Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -55,12 +55,16 @@ import UIKit
5555
5656extension 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 {
You can’t perform that action at this time.
0 commit comments