[F] Get tone name through list rather than adding another field to Alarm
This commit is contained in:
@@ -81,7 +81,7 @@ class AlarmTableCell: UITableViewCell
|
||||
descriptionText.text = "- " + alarm.text
|
||||
enable.isOn = alarm.enabled
|
||||
wvmText.text = alarm.wakeMethod.name
|
||||
toneLabel.text = alarm.toneName
|
||||
toneLabel.text = ringtones.first { $0.tone.description == alarm.alarmTone.description }?.name
|
||||
|
||||
// Display Hour, Minute, and AM or PM
|
||||
ampm.text = alarm.hour < 12 || alarm.hour == 24 ? "AM" : "PM"
|
||||
|
||||
Reference in New Issue
Block a user