From 4033fba38c07374911245d5addbb62bc05c154c6 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:15:35 +0300 Subject: [PATCH] d --- Modules/MicX/MicItem/src/MicItem.V.swift | 1 + Modules/MicX/MicItem/src/MicItem.WillBe.swift | 20 +++++++++++++++++++ app/Podfile.lock | 4 ++-- 3 files changed, 23 insertions(+), 2 deletions(-) create mode 100644 Modules/MicX/MicItem/src/MicItem.WillBe.swift diff --git a/Modules/MicX/MicItem/src/MicItem.V.swift b/Modules/MicX/MicItem/src/MicItem.V.swift index 8e16892..a7eddd5 100644 --- a/Modules/MicX/MicItem/src/MicItem.V.swift +++ b/Modules/MicX/MicItem/src/MicItem.V.swift @@ -5,6 +5,7 @@ extension MicItem { public struct V: View { var id: String? @StateObject var isActive = BusUI.Value(Mic.K.isActive, false) + let ctrl = Controller() let processors: [Any] public init(_ id: String? = nil) { diff --git a/Modules/MicX/MicItem/src/MicItem.WillBe.swift b/Modules/MicX/MicItem/src/MicItem.WillBe.swift new file mode 100644 index 0000000..cdff43a --- /dev/null +++ b/Modules/MicX/MicItem/src/MicItem.WillBe.swift @@ -0,0 +1,20 @@ +import MPAKX + +public protocol MicItemContext { + var activityDate: MPAK.Recent { get } +} + +extension MicItem { + public struct Model: MicItemContext { + public var activityDate: MPAK.Recent = .init(nil) + } + + final class Controller: MPAK.Controller { + init() { + super.init( + MicItem.Model(), + debugClassName: "MicICtrl", + debugLog: { print($0) } + ) + } + } diff --git a/app/Podfile.lock b/app/Podfile.lock index 8c7b6d2..ea122f5 100644 --- a/app/Podfile.lock +++ b/app/Podfile.lock @@ -1,6 +1,6 @@ PODS: - AELog (0.6.3) - - BusX (2024.01.15) + - BusX (2024.01.16) - MeetupIdX (2023.12.31): - AELog - BusX @@ -34,7 +34,7 @@ EXTERNAL SOURCES: SPEC CHECKSUMS: AELog: f732b70f7a9d1b4c6a3676304192b3908f362133 - BusX: 1db5cf8652f7b206af468cc115cab3326efd1ced + BusX: 7c7675152d44023781c7d46cda3617ceee41312f MeetupIdX: 2fa9fb27717aa8878ff495c1abe960c96e524308 MicX: 6ffa81f29a477a66cde277e3ade3de8ce2d47b91 MPAKX: dc592434f55edf34709f6e4f37c9ec90dcd95185