Михаил Капелько 10 月之前
父節點
當前提交
de42152b9f
共有 3 個檔案被更改,包括 6 行新增5 行删除
  1. +1
    -1
      Modules/BusX/BusUI/src/BusUI.TextField.swift
  2. +2
    -2
      Modules/MeetupIdX/src/MeetupId.TV.swift
  3. +3
    -2
      Modules/MeetupIdX/src/MeetupId.TVM.swift

+ 1
- 1
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) }


+ 2
- 2
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))


+ 3
- 2
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
}


Loading…
取消
儲存