Михаил Капелько 10 mesi fa
parent
commit
76cef40423
3 ha cambiato i file con 12 aggiunte e 3 eliminazioni
  1. +2
    -1
      Modules/MicX/Mic/src/Mic.K.swift
  2. +2
    -1
      Modules/MicX/MicItem/src/MicItem.V.swift
  3. +8
    -1
      src/App.swift

+ 2
- 1
Modules/MicX/Mic/src/Mic.K.swift Vedi File

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

+ 2
- 1
Modules/MicX/MicItem/src/MicItem.V.swift Vedi File

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


+ 8
- 1
src/App.swift Vedi File

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

Loading…
Annulla
Salva