Михаил Капелько 10 meses atrás
pai
commit
45e61ae350
2 arquivos alterados com 14 adições e 1 exclusões
  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 Ver arquivo

@@ -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 Ver arquivo

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

Carregando…
Cancelar
Salvar