summaryrefslogtreecommitdiff
path: root/SmartDeviceLink-ExampleSwift/ConnectionIAPTableViewController.swift
diff options
context:
space:
mode:
authorBrettyWhite <geekman3454@protonmail.com>2017-05-22 11:51:33 -0400
committerBrettyWhite <geekman3454@protonmail.com>2017-05-22 11:51:33 -0400
commitd2d0417d0e3ecead75a6ace67038fb5c35231ea2 (patch)
treefc8f8ede126e3f45a0a7d0b08478bdb42718d697 /SmartDeviceLink-ExampleSwift/ConnectionIAPTableViewController.swift
parent4826b8cdf89662b5e087d9d5083ca164218b4a29 (diff)
downloadsdl_ios-feature/Hello_SDL_Swift.tar.gz
changing to fit swift3 design patternfeature/Hello_SDL_Swift
Diffstat (limited to 'SmartDeviceLink-ExampleSwift/ConnectionIAPTableViewController.swift')
-rw-r--r--SmartDeviceLink-ExampleSwift/ConnectionIAPTableViewController.swift14
1 files changed, 7 insertions, 7 deletions
diff --git a/SmartDeviceLink-ExampleSwift/ConnectionIAPTableViewController.swift b/SmartDeviceLink-ExampleSwift/ConnectionIAPTableViewController.swift
index b60a5bf9c..4034ae591 100644
--- a/SmartDeviceLink-ExampleSwift/ConnectionIAPTableViewController.swift
+++ b/SmartDeviceLink-ExampleSwift/ConnectionIAPTableViewController.swift
@@ -13,7 +13,7 @@ class ConnectionIAPTableViewController: UITableViewController, ProxyManagerDeleg
@IBOutlet weak var table: UITableView!
@IBOutlet weak var connectButton: UIButton!
- var state: ProxyState = ProxyState.Stopped
+ var state: ProxyState = ProxyState.stopped
override func viewDidLoad() {
super.viewDidLoad()
@@ -41,11 +41,11 @@ class ConnectionIAPTableViewController: UITableViewController, ProxyManagerDeleg
// Initialize (or reset) the SDL manager
switch state {
- case ProxyState.Stopped:
+ case ProxyState.stopped:
ProxyManager.sharedManager.startIAP()
- case ProxyState.Searching:
+ case ProxyState.searching:
ProxyManager.sharedManager.reset()
- case ProxyState.Connected:
+ case ProxyState.connected:
ProxyManager.sharedManager.reset()
}
}
@@ -57,13 +57,13 @@ class ConnectionIAPTableViewController: UITableViewController, ProxyManagerDeleg
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"
}