Михаил Капелько 10 个月前
父节点
当前提交
76cef40423
共有 3 个文件被更改,包括 12 次插入3 次删除
  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 查看文件

@@ -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 查看文件

@@ -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 查看文件

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

正在加载...
取消
保存