@@ -78,7 +78,7 @@ struct NotificationManager {
7878 notification. body = error. localizedDescription
7979 }
8080
81- notification. sound = UNNotificationSound . default ( )
81+ notification. sound = . default
8282
8383 if startDate. timeIntervalSinceNow >= TimeInterval ( minutes: - 5 ) {
8484 notification. categoryIdentifier = LoopNotificationCategory . bolusFailure. rawValue
@@ -122,7 +122,7 @@ struct NotificationManager {
122122 }
123123
124124 notification. title = NSLocalizedString ( " Loop Failure " , comment: " The notification title for a loop failure " )
125- notification. sound = UNNotificationSound . default ( )
125+ notification. sound = . default
126126 notification. categoryIdentifier = LoopNotificationCategory . loopNotRunning. rawValue
127127 notification. threadIdentifier = LoopNotificationCategory . loopNotRunning. rawValue
128128
@@ -157,7 +157,7 @@ struct NotificationManager {
157157
158158 notification. title = NSLocalizedString ( " Pump Battery Low " , comment: " The notification title for a low pump battery " )
159159 notification. body = NSLocalizedString ( " Change the pump battery immediately " , comment: " The notification alert describing a low pump battery " )
160- notification. sound = UNNotificationSound . default ( )
160+ notification. sound = . default
161161 notification. categoryIdentifier = LoopNotificationCategory . pumpBatteryLow. rawValue
162162
163163 let request = UNNotificationRequest (
@@ -178,7 +178,7 @@ struct NotificationManager {
178178
179179 notification. title = NSLocalizedString ( " Pump Reservoir Empty " , comment: " The notification title for an empty pump reservoir " )
180180 notification. body = NSLocalizedString ( " Change the pump reservoir now " , comment: " The notification alert describing an empty pump reservoir " )
181- notification. sound = UNNotificationSound . default ( )
181+ notification. sound = . default
182182 notification. categoryIdentifier = LoopNotificationCategory . pumpReservoirEmpty. rawValue
183183
184184 let request = UNNotificationRequest (
@@ -211,7 +211,7 @@ struct NotificationManager {
211211 notification. body = String ( format: NSLocalizedString ( " %1$@ U left " , comment: " Low reservoir alert format string. (1: Number of units remaining) " ) , unitsString)
212212 }
213213
214- notification. sound = UNNotificationSound . default ( )
214+ notification. sound = . default
215215 notification. categoryIdentifier = LoopNotificationCategory . pumpReservoirLow. rawValue
216216
217217 let request = UNNotificationRequest (
0 commit comments