summaryrefslogtreecommitdiff
path: root/Example Apps/Example Swift
diff options
context:
space:
mode:
authorJoel Fischer <joeljfischer@gmail.com>2021-03-19 09:10:36 -0400
committerJoel Fischer <joeljfischer@gmail.com>2021-03-19 09:10:36 -0400
commitf590b0941cb92b646b066c912d8a8da9efd6ed59 (patch)
tree2a193a66685a16ddf53ad7f8c8db244951e3299b /Example Apps/Example Swift
parentaa5e637da2a8e62622185300744c0256eef82997 (diff)
downloadsdl_ios-f590b0941cb92b646b066c912d8a8da9efd6ed59.tar.gz
Fix some colors and a log
Diffstat (limited to 'Example Apps/Example Swift')
-rw-r--r--Example Apps/Example Swift/ConnectionIAPTableViewController.swift8
-rw-r--r--Example Apps/Example Swift/ConnectionTCPTableViewController.swift8
2 files changed, 8 insertions, 8 deletions
diff --git a/Example Apps/Example Swift/ConnectionIAPTableViewController.swift b/Example Apps/Example Swift/ConnectionIAPTableViewController.swift
index 5a51ad456..3898c7a86 100644
--- a/Example Apps/Example Swift/ConnectionIAPTableViewController.swift
+++ b/Example Apps/Example Swift/ConnectionIAPTableViewController.swift
@@ -26,7 +26,7 @@ class ConnectionIAPTableViewController: UITableViewController, ProxyManagerDeleg
}
func initButton() {
- self.connectTableViewCell.backgroundColor = UIColor.red
+ self.connectTableViewCell.backgroundColor = UIColor.systemRed
self.connectButton.setTitle("Connect", for: .normal)
self.connectButton.setTitleColor(.white, for: .normal)
}
@@ -49,13 +49,13 @@ class ConnectionIAPTableViewController: UITableViewController, ProxyManagerDeleg
switch newState {
case .stopped:
- newColor = UIColor.red
+ newColor = UIColor.systemRed
newTitle = "Connect"
case .searching:
- newColor = UIColor.blue
+ newColor = UIColor.systemOrange
newTitle = "Stop Searching"
case .connected:
- newColor = UIColor.green
+ newColor = UIColor.systemGreen
newTitle = "Disconnect"
}
diff --git a/Example Apps/Example Swift/ConnectionTCPTableViewController.swift b/Example Apps/Example Swift/ConnectionTCPTableViewController.swift
index 4f07745e9..5195ce462 100644
--- a/Example Apps/Example Swift/ConnectionTCPTableViewController.swift
+++ b/Example Apps/Example Swift/ConnectionTCPTableViewController.swift
@@ -30,7 +30,7 @@ class ConnectionTCPTableViewController: UITableViewController, UINavigationContr
}
func initButton() {
- self.connectTableViewCell.backgroundColor = UIColor.red
+ self.connectTableViewCell.backgroundColor = UIColor.systemRed
self.connectButton.setTitle("Connect", for: .normal)
self.connectButton.setTitleColor(.white, for: .normal)
}
@@ -65,13 +65,13 @@ class ConnectionTCPTableViewController: UITableViewController, UINavigationContr
switch newState {
case .stopped:
- newColor = UIColor.red
+ newColor = UIColor.systemRed
newTitle = "Connect"
case .searching:
- newColor = UIColor.blue
+ newColor = UIColor.systemOrange
newTitle = "Stop Searching"
case .connected:
- newColor = UIColor.green
+ newColor = UIColor.systemGreen
newTitle = "Disconnect"
}