Skip to content
Snippets Groups Projects
RequestsContainerViewModel.swift 346 B
Newer Older
Bruno Muniz's avatar
Bruno Muniz committed
import HUD
import Combine

final class RequestsContainerViewModel {
    // MARK: Properties

    var hud: AnyPublisher<HUDStatus, Never> {
        hudRelay.eraseToAnyPublisher()
    }

    private let hudRelay = PassthroughSubject<HUDStatus, Never>()

    // MARK: Public

    func didReceive(hud: HUDStatus) {
        hudRelay.send(hud)
    }
}