Moves the comment about the source of the sound from the UserNotificationManager and into the AppAssets struct.

This commit is contained in:
Diggory Laycock
2022-10-01 15:20:53 +01:00
parent 1ed547d722
commit 92a5b10223
3 changed files with 2 additions and 1 deletions

View File

@@ -296,6 +296,7 @@ struct AppAssets {
}
static var notificationSoundBlipFileName: String = {
// https://freesound.org/people/cabled_mess/sounds/350862/
return "notificationSoundBlip.caf"
}()

View File

@@ -62,7 +62,6 @@ private extension UserNotificationManager {
}
content.body = ArticleStringFormatter.truncatedSummary(article)
content.threadIdentifier = webFeed.webFeedID
// https://freesound.org/people/cabled_mess/sounds/350862/
content.sound = UNNotificationSound(named: UNNotificationSoundName(rawValue: AppAssets.notificationSoundBlipFileName))
content.userInfo = [UserInfoKey.articlePath: article.pathUserInfo]
content.categoryIdentifier = "NEW_ARTICLE_NOTIFICATION_CATEGORY"

View File

@@ -326,6 +326,7 @@ struct AppAssets {
}
static var notificationSoundBlipFileName: String = {
// https://freesound.org/people/cabled_mess/sounds/350862/
return "notificationSoundBlip.caf"
}()