From e01477b2281910e72b9668b322c15fe6d1fd6460 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, 26 Dec 2023 13:02:47 +0300 Subject: [PATCH] d --- src/VM.swift | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/src/VM.swift b/src/VM.swift index bd33712..a4ac538 100644 --- a/src/VM.swift +++ b/src/VM.swift @@ -12,20 +12,20 @@ final class VM: ObservableObject { init() { Bus.send( - MeetupId.K.meetupIdTextUI.rawValue, - $text - // Исключаем конфликты от UI и App путём игнорирования спама. - .debounce(for: .seconds(0.3), scheduler: DispatchQueue.main) - .compactMap(onlyAcceptUIText) - .eraseToAnyPublisher(), - sub: &subscriptions - ) + MeetupId.K.meetupIdTextUI.rawValue, + $text + // Исключаем конфликты от UI и App путём игнорирования спама. + .debounce(for: .seconds(0.3), scheduler: DispatchQueue.main) + .compactMap(onlyAcceptUIText) + .eraseToAnyPublisher(), + sub: &subscriptions + ) - Bus.receive( - [MeetupId.K.meetupIdTextApp.rawValue], - { [weak self] (_, v: String) in self?.text = "a:\(v)" }, - opt: [.async], - sub: &subscriptions - ) + Bus.receive( + [MeetupId.K.meetupIdTextApp.rawValue], + { [weak self] (_, v: String) in self?.text = "a:\(v)" }, + opt: [.async], + sub: &subscriptions + ) } }