[+] Set alarm table cell's going off text
This commit is contained in:
@@ -62,5 +62,10 @@ class AlarmTableCell: UITableViewCell
|
|||||||
func setData(_ alarm: Alarm)
|
func setData(_ alarm: Alarm)
|
||||||
{
|
{
|
||||||
descriptionText.text = "- " + alarm.text
|
descriptionText.text = "- " + alarm.text
|
||||||
|
|
||||||
|
if alarm.enabled, let n = alarm.nextActivate
|
||||||
|
{
|
||||||
|
goingOffText.text = "(Going off in \(n.timeIntervalSince(Date()).str()))"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user