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