Михаил Капелько 11 months ago
parent
commit
76cef40423
3 changed files with 12 additions and 3 deletions
  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 View 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 View 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 View 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…
Cancel
Save