Commit 77067cea authored by Chris Morris's avatar Chris Morris
Browse files

Add button fully functioning

The add button will send the (currently working) elements back to the switches array, and it then proceeds to push the segue back to the main screen.
parent 9d92e679
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -87,6 +87,7 @@
                                <state key="normal" title="Add"/>
                                <connections>
                                    <action selector="addNewSwitchToArray:" destination="suB-40-Rzp" eventType="touchUpInside" id="jid-bh-6Mg"/>
                                    <segue destination="B4C-07-lOU" kind="show" animates="NO" id="uXZ-Ev-lW3"/>
                                </connections>
                            </button>
                        </subviews>
@@ -183,4 +184,7 @@
            <point key="canvasLocation" x="-226" y="123"/>
        </scene>
    </scenes>
    <inferredMetricsTieBreakers>
        <segue reference="uXZ-Ev-lW3"/>
    </inferredMetricsTieBreakers>
</document>
+0 −1
Original line number Diff line number Diff line
@@ -28,7 +28,6 @@ class AddSwitchViewController: UIViewController {
        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)
    }
    
    /*