Added app icon to notification

This commit is contained in:
Aaron
2021-01-26 23:06:23 -05:00
parent 57e5eca0f9
commit 1b8ba32c3f
3 changed files with 5 additions and 1 deletions
Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 MiB

+1 -1
View File
@@ -54,7 +54,7 @@ class Notification {
content.sound = UNNotificationSound(named: UNNotificationSoundName(rawValue: "notif.caf"))
// Notification image content
let imageName = "clock"
let imageName = "AlarmLogo1"
guard let imageURL = Bundle.main.url(forResource: imageName, withExtension: "png") else { return }
let attachment = try! UNNotificationAttachment(identifier: imageName, url: imageURL, options: .none)
content.attachments = [attachment]