From de42152b9ff55bfb8f7e9dc109c63b4153b17b47 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 10:09:32 +0300 Subject: [PATCH] d --- Modules/BusX/BusUI/src/BusUI.TextField.swift | 2 +- Modules/MeetupIdX/src/MeetupId.TV.swift | 4 ++-- Modules/MeetupIdX/src/MeetupId.TVM.swift | 5 +++-- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/Modules/BusX/BusUI/src/BusUI.TextField.swift b/Modules/BusX/BusUI/src/BusUI.TextField.swift index 93996e8..2cd9faa 100644 --- a/Modules/BusX/BusUI/src/BusUI.TextField.swift +++ b/Modules/BusX/BusUI/src/BusUI.TextField.swift @@ -17,7 +17,7 @@ extension BusUI { self.textApp = textApp self.textUI = textUI - /**/print("ИГР BusUTF(\(Unmanaged.passUnretained(self).toOpaque())).init textA/textU: '\(textApp)'/'\(textUI)'") + /**///print("ИГР BusUTF(\(Unmanaged.passUnretained(self).toOpaque())).init textA/textU: '\(textApp)'/'\(textUI)'") $id .sink { [weak self] v in self?.setup(v) } diff --git a/Modules/MeetupIdX/src/MeetupId.TV.swift b/Modules/MeetupIdX/src/MeetupId.TV.swift index d4f628c..d73ccd1 100644 --- a/Modules/MeetupIdX/src/MeetupId.TV.swift +++ b/Modules/MeetupIdX/src/MeetupId.TV.swift @@ -4,14 +4,14 @@ import SwiftUI extension MeetupId { public struct TV: View { let id: String - @StateObject var vm = TVM() + @StateObject var vm = VM() public init(_ id: String) { self.id = id } public var body: some View { - TextField("TV", value: vm.$textField.v, formatter: BusUI.TextFieldSource()) + TextField("TV", value: $vm.textField.v, formatter: BusUI.TextFieldSource()) .padding(8) .border(Color.blue) .animation(.easeInOut(duration: 0.3)) diff --git a/Modules/MeetupIdX/src/MeetupId.TVM.swift b/Modules/MeetupIdX/src/MeetupId.TVM.swift index 25c4106..2276092 100644 --- a/Modules/MeetupIdX/src/MeetupId.TVM.swift +++ b/Modules/MeetupIdX/src/MeetupId.TVM.swift @@ -1,14 +1,15 @@ import BusX +import Combine extension MeetupId { public final class VM: ObservableObject { - let textField = BusUI.TextField(K.testTextApp, K.testTextUI) @Published public var id: String? + @Published var textField = BusUI.TextField(K.testTextApp, K.testTextUI) var subscriptions = [AnyCancellable]() public init() { } - public setup(_ id: String) { + public func setup(_ id: String) { /**/print("ИГР MeetupIV(\(Unmanaged.passUnretained(self).toOpaque())).setup id: '\(id)'") textField.id = id }