From af7ddfa161944c2f9022c5c096cc4947ab8be2bd 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 09:40:36 +0300 Subject: [PATCH] d --- Modules/MeetupIdX/src/MeetupId.K.swift | 3 +++ Modules/MeetupIdX/src/MeetupId.TV.swift | 19 +++++++++++++++++++ src/App.swift | 3 +++ 3 files changed, 25 insertions(+) create mode 100644 Modules/MeetupIdX/src/MeetupId.TV.swift diff --git a/Modules/MeetupIdX/src/MeetupId.K.swift b/Modules/MeetupIdX/src/MeetupId.K.swift index fa4f223..80d4b66 100644 --- a/Modules/MeetupIdX/src/MeetupId.K.swift +++ b/Modules/MeetupIdX/src/MeetupId.K.swift @@ -7,6 +7,9 @@ public extension MeetupId { static let M = "MeetupId" static let textApp = "MeetupId.textApp" static let textUI = "MeetupId.textUI" + + static let testTextApp = "MeetupId.testTextApp" + static let testTextUI = "MeetupId.testTextUI" } } diff --git a/Modules/MeetupIdX/src/MeetupId.TV.swift b/Modules/MeetupIdX/src/MeetupId.TV.swift new file mode 100644 index 0000000..695aca8 --- /dev/null +++ b/Modules/MeetupIdX/src/MeetupId.TV.swift @@ -0,0 +1,19 @@ +import BusX +import SwiftUI + +extension MeetupId { + public struct TV: View { + @StateObject var textField = BusUI.TextField(K.testTextApp, K.testTextUI) + + public init(_ id: String) { + textField.id = id + } + + public var body: some View { + TextField("TV", value: $textField.v, formatter: BusUI.TextFieldSource()) + .padding(8) + .border(Color.blue) + .animation(.easeInOut(duration: 0.3)) + } + } +} diff --git a/src/App.swift b/src/App.swift index 7b772ce..0f71d39 100644 --- a/src/App.swift +++ b/src/App.swift @@ -6,6 +6,9 @@ struct Content: View { var body: some View { MeetupId.V() Divider() + MeetupId.TV("uuid-1") + Divider() + MeetupId.TV("uuid-2") } }