From 76cef404239be32f608137b07ae8e657e4fa3931 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B8=D1=85=D0=B0=D0=B8=D0=BB=20=D0=9A=D0=B0=D0=BF?= =?UTF-8?q?=D0=B5=D0=BB=D1=8C=D0=BA=D0=BE?= Date: Tue, 16 Jan 2024 19:08:46 +0300 Subject: [PATCH] d --- Modules/MicX/Mic/src/Mic.K.swift | 3 ++- Modules/MicX/MicItem/src/MicItem.V.swift | 3 ++- src/App.swift | 9 ++++++++- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/Modules/MicX/Mic/src/Mic.K.swift b/Modules/MicX/Mic/src/Mic.K.swift index 4184cd9..28bd311 100644 --- a/Modules/MicX/Mic/src/Mic.K.swift +++ b/Modules/MicX/Mic/src/Mic.K.swift @@ -1,6 +1,7 @@ public extension Mic { enum K { + public static let activityDate = "Mic.activityDate" public static let isActive = "Mic.isActive" - public static let MI = "Mic.ModelItem" + public static let itemM = "Mic.Item.Model" } } diff --git a/Modules/MicX/MicItem/src/MicItem.V.swift b/Modules/MicX/MicItem/src/MicItem.V.swift index 64b140a..8e16892 100644 --- a/Modules/MicX/MicItem/src/MicItem.V.swift +++ b/Modules/MicX/MicItem/src/MicItem.V.swift @@ -10,7 +10,8 @@ extension MicItem { public init(_ id: String? = nil) { self.id = id self.processors = [ - Bus.Sync(shouldResetActivity, Mic.K.MI, Mic.K.isActive), + //Bus.Pipe(), + //Bus.Sync(shouldResetActivity, Mic.K.MI, Mic.K.isActive), ] } diff --git a/src/App.swift b/src/App.swift index ae50b1d..6cad1e0 100644 --- a/src/App.swift +++ b/src/App.swift @@ -31,7 +31,8 @@ class AppDelegate: UIResponder, UIApplicationDelegate window?.makeKeyAndVisible() /**/print("ИГР App.didFLWO") - testMic1() + //testMic1() + testMic2() return true } @@ -43,4 +44,10 @@ class AppDelegate: UIResponder, UIApplicationDelegate Bus.send(Mic.K.isActive, false) } } + + func testMic2() { + DispatchQueue.main.asyncAfter(deadline: .now() + 2) { + Bus.send(Mic.K.activityDate, Date() + 5) + } + } }