From 061548b8b45182128217571286e06f9454178ae1 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: Tue, 16 Jan 2024 19:02:32 +0300 Subject: [PATCH] d --- Modules/MicX/Mic/src/Mic.K.swift | 1 + Modules/MicX/MicItem/src/MicItem.V.swift | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/Modules/MicX/Mic/src/Mic.K.swift b/Modules/MicX/Mic/src/Mic.K.swift index f37112f..4184cd9 100644 --- a/Modules/MicX/Mic/src/Mic.K.swift +++ b/Modules/MicX/Mic/src/Mic.K.swift @@ -1,5 +1,6 @@ public extension Mic { enum K { public static let isActive = "Mic.isActive" + public static let MI = "Mic.ModelItem" } } diff --git a/Modules/MicX/MicItem/src/MicItem.V.swift b/Modules/MicX/MicItem/src/MicItem.V.swift index c10f215..64b140a 100644 --- a/Modules/MicX/MicItem/src/MicItem.V.swift +++ b/Modules/MicX/MicItem/src/MicItem.V.swift @@ -5,9 +5,13 @@ extension MicItem { public struct V: View { var id: String? @StateObject var isActive = BusUI.Value(Mic.K.isActive, false) + let processors: [Any] public init(_ id: String? = nil) { self.id = id + self.processors = [ + Bus.Sync(shouldResetActivity, Mic.K.MI, Mic.K.isActive), + ] } public var body: some View {