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