[+] Set alarm table cell's going off text

This commit is contained in:
Hykilpikonna
2021-01-17 14:50:13 -05:00
parent a3252603fb
commit 31afd97850
+5
View File
@@ -62,5 +62,10 @@ class AlarmTableCell: UITableViewCell
func setData(_ alarm: Alarm)
{
descriptionText.text = "- " + alarm.text
if alarm.enabled, let n = alarm.nextActivate
{
goingOffText.text = "(Going off in \(n.timeIntervalSince(Date()).str()))"
}
}
}