From 4bb34d212abbfa0115bdf01ba44170748bb2c328 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, 9 Feb 2024 08:21:45 +0300 Subject: [PATCH] d --- Modules/MicX/MicItem/MicItem.yml | 2 +- Modules/MicX/MicItem/src/MicItem.Generated.swift | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Modules/MicX/MicItem/MicItem.yml b/Modules/MicX/MicItem/MicItem.yml index 276c9d7..1dc160f 100644 --- a/Modules/MicX/MicItem/MicItem.yml +++ b/Modules/MicX/MicItem/MicItem.yml @@ -1,4 +1,4 @@ version: 5 -activityDates: [Date?, nil, recent] +activityDate: [Date?, nil, recent] timeout: [Bool, false, toggle] diff --git a/Modules/MicX/MicItem/src/MicItem.Generated.swift b/Modules/MicX/MicItem/src/MicItem.Generated.swift index 20e69c2..99b1bf7 100644 --- a/Modules/MicX/MicItem/src/MicItem.Generated.swift +++ b/Modules/MicX/MicItem/src/MicItem.Generated.swift @@ -11,7 +11,7 @@ import UIKit // MARK: - Context public protocol MicItemContext { - var activityDates: MPAK.Recent { get } + var activityDate: MPAK.Recent { get } var timeout: Bool { get } } @@ -20,7 +20,7 @@ extension MicItem { // MARK: - Model public struct Model: MicItemContext { - public var activityDates: MPAK.Recent = .init(nil) + public var activityDate: MPAK.Recent = .init(nil) public var timeout: Bool = false } @@ -45,12 +45,12 @@ extension MicItem { pipeValue( dbg: "activityD", - Bus.events.compactMap { Bus.convertKeyValue(Bus.keyId(K.activityDates, id), $0) }.map { (k: String, v: Date?) in v }.eraseToAnyPublisher(), + Bus.events.compactMap { Bus.convertKeyValue(Bus.keyId(K.activityDate, id), $0) }.map { (k: String, v: Date?) in v }.eraseToAnyPublisher(), { - $0.activityDates.value = $1 - $0.activityDates.isRecent = true + $0.activityDate.value = $1 + $0.activityDate.isRecent = true }, - { m, _ in m.activityDates.isRecent = false } + { m, _ in m.activityDate.isRecent = false } ) pipe( dbg: "timeout",