diff --git a/src/App.swift b/src/App.swift index 932edbd..704d296 100644 --- a/src/App.swift +++ b/src/App.swift @@ -1,4 +1,5 @@ import BusX +import Combine import MeetupIdX import MicX import SwiftUI @@ -60,7 +61,11 @@ class AppDelegate: UIResponder, UIApplicationDelegate } } + var subscriptions = [AnyCancellable]() func testMic2_id(_ id: String) { + Bus.events + .sink { e in print("ИГР AppD.testM e: '\(e)'") } + .store(in: &subscriptions) DispatchQueue.main.asyncAfter(deadline: .now() + 2) { Bus.send(Bus.keyId(Mic.K.activityDate, id), Date() + 2) }