remove notifications before adding new ones
This commit is contained in:
@@ -29,6 +29,8 @@ class LocalNotification {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public class func scheduleReminder(atTime time: Date, withTitle title: String) {
|
public class func scheduleReminder(atTime time: Date, withTitle title: String) {
|
||||||
|
self.removeNotificaiton()
|
||||||
|
|
||||||
LocalNotification.testIfEnabled(completion: { result in
|
LocalNotification.testIfEnabled(completion: { result in
|
||||||
switch result{
|
switch result{
|
||||||
case .success(_):
|
case .success(_):
|
||||||
|
|||||||
Reference in New Issue
Block a user