Commit 9d92e679 authored by Chris Morris's avatar Chris Morris
Browse files

Fixed warnings

Swift wanted me to change some vars to lets
parent 2f76e7c0
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -25,8 +25,8 @@ class AddSwitchViewController: UIViewController {
    }
    
    @IBAction func addNewSwitchToArray(_ sender: Any) {
        var addThis = DeadManSwitch(title: titleText.text!, time:"implement this", enabled: enabled.isOn)
        var vc = ViewController()
        let addThis = DeadManSwitch(title: titleText.text!, time:"implement this", enabled: enabled.isOn)
        let vc = ViewController()
        vc.addSwitch(add: addThis)
        vc.show(self, sender: Any?.self)
    }