d
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,7 +3,7 @@ import SwiftUI
|
||||
|
||||
final class VM: ObservableObject {
|
||||
@Published var text = "a:"
|
||||
|
||||
|
||||
var subscriptions = [AnyCancellable]()
|
||||
|
||||
init() {
|
||||
|
||||
Reference in New Issue
Block a user