summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrett W <geekman3454@protonmail.com>2017-09-11 14:58:10 -0700
committerBrett W <geekman3454@protonmail.com>2017-09-11 14:58:10 -0700
commit78e74cdf437b9606b1b8467c132792b464efa3c9 (patch)
treef2e606002cb69339ad6f26d49cec587d2d47468f
parentb0b4f4546e4a952c677d2b912f412efd6f0b88d9 (diff)
downloadsdl_ios-feature/issue_620_swift_example_app.tar.gz
fixed small error preventing buildfeature/issue_620_swift_example_app
-rw-r--r--SmartDeviceLink-ExampleSwift/ConnectionContainerViewController.swift6
1 files changed, 3 insertions, 3 deletions
diff --git a/SmartDeviceLink-ExampleSwift/ConnectionContainerViewController.swift b/SmartDeviceLink-ExampleSwift/ConnectionContainerViewController.swift
index b7bb2e9cc..f63ac86c3 100644
--- a/SmartDeviceLink-ExampleSwift/ConnectionContainerViewController.swift
+++ b/SmartDeviceLink-ExampleSwift/ConnectionContainerViewController.swift
@@ -9,7 +9,7 @@ import UIKit
class ConnectionContainerViewController: UIViewController {
@IBOutlet weak var segmentedControl: UISegmentedControl!
- var viewControllers: [UIViewController]
+ var viewControllers: [UIViewController] = []
var currentViewController: UIViewController?
override func viewDidLoad() {
@@ -20,8 +20,8 @@ class ConnectionContainerViewController: UIViewController {
let iapControllerStoryboard = UIStoryboard(name: "ConnectionIAPTableViewController", bundle: nil)
let tcpController = tcpControllerStoryboard.instantiateViewController(withIdentifier :"ConnectionTCPTableViewController")
let iapController = iapControllerStoryboard.instantiateViewController(withIdentifier :"ConnectionIAPTableViewController")
- viewControllers.add(tcpController)
- viewControllers.add(iapController)
+ viewControllers.append(tcpController)
+ viewControllers.append(iapController)
segmentedControl.selectedSegmentIndex = 0
loadChildViewController(index: 0)