Updated the delete button for alarms
This commit is contained in:
@@ -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
|
Called when the user clicks Add Alarm
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -422,6 +422,9 @@
|
|||||||
</constraints>
|
</constraints>
|
||||||
<fontDescription key="fontDescription" type="system" pointSize="30"/>
|
<fontDescription key="fontDescription" type="system" pointSize="30"/>
|
||||||
<state key="normal" image="trash.fill" catalog="system"/>
|
<state key="normal" image="trash.fill" catalog="system"/>
|
||||||
|
<connections>
|
||||||
|
<action selector="cancelAlarmButton:" destination="Mki-dC-5Kc" eventType="touchUpInside" id="4zo-hG-Mnk"/>
|
||||||
|
</connections>
|
||||||
</button>
|
</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">
|
<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"/>
|
<rect key="frame" x="20" y="40.5" width="374" height="14.5"/>
|
||||||
|
|||||||
Reference in New Issue
Block a user