diff --git a/ProjectClock/AlarmViewController.swift b/ProjectClock/AlarmViewController.swift index d8386d1..c58d0e2 100644 --- a/ProjectClock/AlarmViewController.swift +++ b/ProjectClock/AlarmViewController.swift @@ -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()))" + } } }