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) + } } }