Updated the delete button for alarms

This commit is contained in:
Dallon Archibald
2021-01-21 14:54:38 -05:00
parent f8b78cfbc4
commit c187403e29
2 changed files with 11 additions and 0 deletions
@@ -37,6 +37,14 @@ class AddAlarmViewController: UIViewController
}
/**
Called when the user clicks the remove button and brings them back to the home page
*/
@IBAction func cancelAlarmButton(_ sender: Any) {
self.dismiss(animated: true, completion: nil)
//might need to reset all UI elements
}
/**
Called when the user clicks Add Alarm
*/
+3
View File
@@ -422,6 +422,9 @@
</constraints>
<fontDescription key="fontDescription" type="system" pointSize="30"/>
<state key="normal" image="trash.fill" catalog="system"/>
<connections>
<action selector="cancelAlarmButton:" destination="Mki-dC-5Kc" eventType="touchUpInside" id="4zo-hG-Mnk"/>
</connections>
</button>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Going off in 23 hr 59 min" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Xqs-n0-H9G">
<rect key="frame" x="20" y="40.5" width="374" height="14.5"/>