d
This commit is contained in:
28
src/VM.swift
28
src/VM.swift
@@ -12,20 +12,20 @@ final class VM: ObservableObject {
|
|||||||
|
|
||||||
init() {
|
init() {
|
||||||
Bus.send(
|
Bus.send(
|
||||||
MeetupId.K.meetupIdTextUI.rawValue,
|
MeetupId.K.meetupIdTextUI.rawValue,
|
||||||
$text
|
$text
|
||||||
// Исключаем конфликты от UI и App путём игнорирования спама.
|
// Исключаем конфликты от UI и App путём игнорирования спама.
|
||||||
.debounce(for: .seconds(0.3), scheduler: DispatchQueue.main)
|
.debounce(for: .seconds(0.3), scheduler: DispatchQueue.main)
|
||||||
.compactMap(onlyAcceptUIText)
|
.compactMap(onlyAcceptUIText)
|
||||||
.eraseToAnyPublisher(),
|
.eraseToAnyPublisher(),
|
||||||
sub: &subscriptions
|
sub: &subscriptions
|
||||||
)
|
)
|
||||||
|
|
||||||
Bus.receive(
|
Bus.receive(
|
||||||
[MeetupId.K.meetupIdTextApp.rawValue],
|
[MeetupId.K.meetupIdTextApp.rawValue],
|
||||||
{ [weak self] (_, v: String) in self?.text = "a:\(v)" },
|
{ [weak self] (_, v: String) in self?.text = "a:\(v)" },
|
||||||
opt: [.async],
|
opt: [.async],
|
||||||
sub: &subscriptions
|
sub: &subscriptions
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user