From 33d81438f588ec2248c1059b1b88c081fdade482 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: Fri, 19 Jan 2024 18:27:55 +0300 Subject: [PATCH] d --- Modules/MicX/MicItem/src/MicItem.WillBe.swift | 8 ++++++-- src/App.swift | 12 ++++++------ 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/Modules/MicX/MicItem/src/MicItem.WillBe.swift b/Modules/MicX/MicItem/src/MicItem.WillBe.swift index 5cb0f3e..5e0a34a 100644 --- a/Modules/MicX/MicItem/src/MicItem.WillBe.swift +++ b/Modules/MicX/MicItem/src/MicItem.WillBe.swift @@ -16,11 +16,15 @@ extension MicItem { extension MicItem { final class Controller: MPAK.Controller { init(_ id: String? = nil) { - /**/print("MicIC.init") + var sid = "" + if let id { + sid = " : \(id)" + } + /**/print("MicIC.init\(sid)") super.init( MicItem.Model(), debugClassName: "MicICtrl", - debugLog: { print($0) } + debugLog: { print("\($0)\(sid)") } ) diff --git a/src/App.swift b/src/App.swift index e3d87dd..39fbed2 100644 --- a/src/App.swift +++ b/src/App.swift @@ -7,9 +7,9 @@ import UIKit struct Content: View { var body: some View { - MeetupId.V() + //MeetupId.V() MicItem.V() - Divider() + //Divider() MicItem.V("1") MicItem.V("2") } @@ -34,20 +34,20 @@ class AppDelegate: UIResponder, UIApplicationDelegate window?.makeKeyAndVisible() /**/print("ИГР App.didFLWO") - //testMic1() + testMic1() //testMic2() testMic2_id("1") DispatchQueue.main.asyncAfter(deadline: .now() + 3) { - testMic2_id("2") + self.testMic2_id("2") } return true } func testMic1() { - DispatchQueue.main.asyncAfter(deadline: .now() + 2) { + DispatchQueue.main.asyncAfter(deadline: .now() + 1) { Bus.send(Mic.K.isActive, true) } - DispatchQueue.main.asyncAfter(deadline: .now() + 5) { + DispatchQueue.main.asyncAfter(deadline: .now() + 4) { Bus.send(Mic.K.isActive, false) } }