Skip to content

Commit

Permalink
Adds missing trigger match.
Browse files Browse the repository at this point in the history
  • Loading branch information
Miiha committed Oct 29, 2020
1 parent a158c34 commit 58be589
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Sources/ComposableUserNotifications/Model.swift
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ extension Notification {
return .push(Trigger.Push(rawValue: trigger))
case let trigger as UNCalendarNotificationTrigger:
return .calendar(Trigger.Calendar(rawValue: trigger))
case let trigger as UNTimeIntervalNotificationTrigger:
return .timeInterval(Trigger.TimeInterval(rawValue: trigger))
#if os(iOS) || os(watchOS)
case let trigger as UNLocationNotificationTrigger:
return .location(Trigger.Location(rawValue: trigger))
Expand Down

0 comments on commit 58be589

Please sign in to comment.