From 27865e97b3fb677da69f92c07b692105991336aa 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: Mon, 8 Jan 2024 15:38:11 +0300 Subject: [PATCH] d --- Modules/BusX/BusUI/src/BusUI.ManyTextField.swift | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/Modules/BusX/BusUI/src/BusUI.ManyTextField.swift b/Modules/BusX/BusUI/src/BusUI.ManyTextField.swift index 13c2010..73f17fe 100644 --- a/Modules/BusX/BusUI/src/BusUI.ManyTextField.swift +++ b/Modules/BusX/BusUI/src/BusUI.ManyTextField.swift @@ -51,7 +51,17 @@ extension BusUI { Bus.receiveSync( [textApp], - { [weak self] (_, v: String) in self?.v = "a:\(v)" }, + { [weak self] (_, m: MPAK.Many) in + guard + let id, + m.keys.contains(id), + let text = m.dict[id] + else { + return + } + + self?.v = "a:\(text)" + }, &subscriptions ) }