Михаил Капелько 10 个月前
父节点
当前提交
0c18821fca
共有 1 个文件被更改,包括 6 次插入5 次删除
  1. +6
    -5
      Modules/MicX/MicItem/src/MicItem.V.swift

+ 6
- 5
Modules/MicX/MicItem/src/MicItem.V.swift 查看文件

@@ -10,11 +10,6 @@ extension MicItem {
public init(_ id: String? = nil) {
self.id = id
/**/print("ИГР MicIV.init id: '\(id)'")
h.hold([
Bus.Delay(shouldResetTimeout, K.MI, K.timeout, id),
Bus.Sync(shouldResetActivity, K.MI, K.isActive, id),
MicItem.Controller(id)
])
}
public var body: some View {
@@ -26,7 +21,13 @@ extension MicItem {
)
.animation(.easeInOut(duration: 0.3))
.onAppear {
/**/print("ИГР MicIV.onA id: '\(id)'")
isActive.id = id
h.items = [
Bus.Delay(shouldResetTimeout, K.MI, K.timeout, id),
Bus.Sync(shouldResetActivity, K.MI, K.isActive, id),
MicItem.Controller(id)
]
//Bus.send(K.requestActivityDate, id)
}
.onChange(of: id) { newValue in


正在加载...
取消
保存