Михаил Капелько 10 months ago
parent
commit
f7127895e9
2 changed files with 3 additions and 3 deletions
  1. +2
    -2
      src/Bus.Receiver.swift
  2. +1
    -1
      src/VM.swift

+ 2
- 2
src/Bus.Receiver.swift 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)
}
}


+ 1
- 1
src/VM.swift View File

@@ -3,7 +3,7 @@ import SwiftUI

final class VM: ObservableObject {
@Published var text = "a:"
var subscriptions = [AnyCancellable]()

init() {


Loading…
Cancel
Save