From 45e61ae350a272851f42b9b35954a23938168864 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: Thu, 25 Jan 2024 18:49:20 +0300 Subject: [PATCH] d --- Modules/MicX/Mic/src/Mic.K.swift | 1 + src/App.swift | 14 +++++++++++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/Modules/MicX/Mic/src/Mic.K.swift b/Modules/MicX/Mic/src/Mic.K.swift index e3893eb..869eb58 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 activityDates = "Mic.activityDates" public static let isActive = "Mic.isActive" public static let MI = "Mic.Model.Item" public static let timeout = "Mic.timeout" diff --git a/src/App.swift b/src/App.swift index 098ebf2..ec542ad 100644 --- a/src/App.swift +++ b/src/App.swift @@ -102,6 +102,18 @@ class AppDelegate: UIResponder, UIApplicationDelegate } func testMic4() { - + let ad1 = [ + "1": Date().addingTimeInterval(3), + "2": Date().addingTimeInterval(5), + ] + Bus.send(Mic.K.activityDates, ad1) + + DispatchQueue.main.asyncAfter(deadline: .now() + 2) { + let ad2 = [ + "1": Date().addingTimeInterval(3), + "4": Date().addingTimeInterval(5), + ] + Bus.send(Mic.K.activityDates, ad2) + } } }