1
0
mirror of https://github.com/metabolist/metatext synced 2025-01-08 16:12:58 +01:00
metatext-app-ios-iphone-ipad/ServiceLayer/Sources/ServiceLayerMocks/MockUserNotificationClient.swift
2021-02-04 12:09:05 -08:00

14 lines
448 B
Swift

// Copyright © 2020 Metabolist. All rights reserved.
import Combine
import ServiceLayer
public extension UserNotificationClient {
static let mock = UserNotificationClient(
getNotificationSettings: { _ in },
requestAuthorization: { _, _ in },
add: { _, completion in completion?(nil) },
removeDeliveredNotifications: { _ in },
delegateEvents: Empty(completeImmediately: false).eraseToAnyPublisher())
}