|
|
@@ -8,8 +8,24 @@ final class VM: ObservableObject { |
|
|
|
@Published var t2 = "a:value" |
|
|
|
var bt2: Binding<String>! |
|
|
|
var subscriptions = Set<AnyCancellable>() |
|
|
|
|
|
|
|
@Published var t3 = "a:value" |
|
|
|
|
|
|
|
init() { |
|
|
|
$t3 |
|
|
|
//.debounce(for: .seconds(0.3), scheduler: DispatchQueue.main) |
|
|
|
.sink { v in |
|
|
|
/**/print("ИГР VM.init t3: '\(v)'") |
|
|
|
// Ignore repoting application initiated strings |
|
|
|
// Only report user initiated strings |
|
|
|
//guard v.hasPrefix("u:") else { return } |
|
|
|
//Bus.Service.singleton?.send(MeetupId.Keys.meetupIdTextUI.rawValue, String(v.dropFirst(2))) |
|
|
|
} |
|
|
|
.store(in: &subscriptions) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
bt2 = Binding<String>( |
|
|
|
get: { [weak self] in |
|
|
|
String(self?.t2.dropFirst(2) ?? "") |
|
|
|