Skip to content

Commit d87eb52

Browse files
committed
update syntax of UIColor constants
1 parent 1edc7ad commit d87eb52

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Diff for: OpenGpxTracker/Toast.swift

+6-6
Original file line numberDiff line numberDiff line change
@@ -60,27 +60,27 @@ class Toast {
6060
static let kFontSize = 16
6161

6262
/// Toast.regular text color
63-
static let kRegularTextColor: UIColor = UIColor(ciColor: .white)
63+
static let kRegularTextColor: UIColor = UIColor.white
6464
/// Toast.regular background color
65-
static let kRegularBackgroundColor: UIColor = UIColor(ciColor: .black)
65+
static let kRegularBackgroundColor: UIColor = UIColor.black
6666

6767
/// Toast.info text color
68-
static let kInfoTextColor: UIColor = UIColor(ciColor: .white)
68+
static let kInfoTextColor: UIColor = UIColor.white
6969
/// Toast.info background color
7070
static let kInfoBackgroundColor: UIColor = UIColor(red: 0/255, green: 100/255, blue: 225/255, alpha: kBackgroundOpacity)
7171

7272
/// Toast.success text color
73-
static let kSuccessTextColor: UIColor = UIColor(ciColor: .white)
73+
static let kSuccessTextColor: UIColor = UIColor.white
7474
/// Toast.success background color
7575
static let kSuccessBackgroundColor: UIColor = UIColor(red: 0/255, green: 150/255, blue: 0/255, alpha: kBackgroundOpacity)
7676

7777
/// Toast.warning text color
78-
static let kWarningTextColor: UIColor = UIColor(ciColor: .black)
78+
static let kWarningTextColor: UIColor = UIColor.black
7979

8080
static let kWarningBackgroundColor: UIColor = UIColor(red: 255/255, green: 175/255, blue: 0/255, alpha: kBackgroundOpacity)
8181

8282
/// Toast.error text color
83-
static let kErrorTextColor: UIColor = UIColor(ciColor: .white)
83+
static let kErrorTextColor: UIColor = UIColor.white
8484
/// Toast.error background color
8585
static let kErrorBackgroundColor: UIColor = UIColor(red: 175/255, green: 0/255, blue: 0/255, alpha: kBackgroundOpacity)
8686

0 commit comments

Comments
 (0)