This commit is contained in:
Михаил Капелько
2023-12-26 12:56:47 +03:00
parent 19e4b7cd52
commit f7127895e9
2 changed files with 3 additions and 3 deletions

View File

@@ -7,8 +7,8 @@ public extension Bus {
public init(
_ keys: Set<String>,
_ handler: @escaping ((String, T) -> Void),
opt: [Option] = [],
{
opt: [Option] = []
) {
Bus.receive(keys, handler, opt: opt, sub: &subscriptions)
}
}

View File

@@ -3,7 +3,7 @@ import SwiftUI
final class VM: ObservableObject {
@Published var text = "a:"
var subscriptions = [AnyCancellable]()
init() {