Skip to content

Commit d186f7c

Browse files
committed
Fix reminder with empty text in the Reminder List Demo App UI
1 parent fbbf582 commit d186f7c

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

DemoApp/Screens/DemoReminderListVC.swift

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -599,7 +599,12 @@ class DemoReminderCell: UITableViewCell {
599599
channelNameLabel.text = "# \(channelName)"
600600
}
601601

602-
messageLabel.text = reminder.message.text
602+
if reminder.message.text.isEmpty {
603+
let attachmentType = reminder.message.allAttachments.first?.type.rawValue.capitalized ?? ""
604+
messageLabel.text = "📎 \(attachmentType)"
605+
} else {
606+
messageLabel.text = reminder.message.text
607+
}
603608

604609
// Configure based on reminder type
605610
if let remindAt = reminder.remindAt {

0 commit comments

Comments
 (0)