This commit is contained in:
Михаил Капелько
2023-12-31 10:33:48 +03:00
parent 0f76c99c95
commit 37b4955bf4
7 changed files with 77 additions and 88 deletions

View File

@@ -10,19 +10,19 @@ extension BusUI {
_ textApp: String,
_ textUI: String
) {
Bus.send(
Bus.sendSync(
textUI,
$v
.removeDuplicates()
.compactMap(onlyUIText)
.eraseToAnyPublisher(),
sub: &subscriptions
&subscriptions
)
Bus.receive(
Bus.receiveSync(
[textApp],
{ [weak self] (_, v: String) in self?.v = "a:\(v)" },
sub: &subscriptions
&subscriptions
)
}
}