diff options
Diffstat (limited to 'SmartDeviceLink-ExampleSwift/ConnectionTCPTableViewController.swift')
-rw-r--r-- | SmartDeviceLink-ExampleSwift/ConnectionTCPTableViewController.swift | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/SmartDeviceLink-ExampleSwift/ConnectionTCPTableViewController.swift b/SmartDeviceLink-ExampleSwift/ConnectionTCPTableViewController.swift index c4928ac0f..3d2e225ba 100644 --- a/SmartDeviceLink-ExampleSwift/ConnectionTCPTableViewController.swift +++ b/SmartDeviceLink-ExampleSwift/ConnectionTCPTableViewController.swift @@ -16,7 +16,7 @@ class ConnectionTCPTableViewController: UITableViewController, UINavigationContr @IBOutlet weak var connectButton: UIButton! @IBOutlet weak var table: UITableView! - var state: ProxyState = ProxyState.Stopped + var state: ProxyState = ProxyState.stopped override func viewDidLoad() { super.viewDidLoad() @@ -54,11 +54,11 @@ class ConnectionTCPTableViewController: UITableViewController, UINavigationContr // Initialize (or reset) the SDL manager switch state { - case ProxyState.Stopped: + case ProxyState.stopped: ProxyManager.sharedManager.startTCP() - case ProxyState.Searching: + case ProxyState.searching: ProxyManager.sharedManager.reset() - case ProxyState.Connected: + case ProxyState.connected: ProxyManager.sharedManager.reset() } }else{ @@ -76,13 +76,13 @@ class ConnectionTCPTableViewController: UITableViewController, UINavigationContr var newTitle: String? = nil switch newState { - case .Stopped: + case .stopped: newColor = UIColor.red newTitle = "Connect" - case .Searching: + case .searching: newColor = UIColor.blue newTitle = "Stop Searching" - case .Connected: + case .connected: newColor = UIColor.green newTitle = "Disconnect" } |