Михаил Капелько 11 months ago
parent
commit
45e61ae350
2 changed files with 14 additions and 1 deletions
  1. +1
    -0
      Modules/MicX/Mic/src/Mic.K.swift
  2. +13
    -1
      src/App.swift

+ 1
- 0
Modules/MicX/Mic/src/Mic.K.swift View File

@@ -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"


+ 13
- 1
src/App.swift View File

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

Loading…
Cancel
Save