From 0c18821fca01c616095894f4664eadd83cc912e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B8=D1=85=D0=B0=D0=B8=D0=BB=20=D0=9A=D0=B0=D0=BF?= =?UTF-8?q?=D0=B5=D0=BB=D1=8C=D0=BA=D0=BE?= Date: Sun, 28 Jan 2024 19:01:16 +0300 Subject: [PATCH] d --- Modules/MicX/MicItem/src/MicItem.V.swift | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/Modules/MicX/MicItem/src/MicItem.V.swift b/Modules/MicX/MicItem/src/MicItem.V.swift index f18fc22..6b31a90 100644 --- a/Modules/MicX/MicItem/src/MicItem.V.swift +++ b/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