|
|
@@ -2,11 +2,11 @@ import BusX |
|
|
|
import Combine |
|
|
|
|
|
|
|
extension Cord { |
|
|
|
final class Button: ObservableObject { |
|
|
|
let press = PassthroughSubject<Void, Never>() |
|
|
|
public final class Button: ObservableObject { |
|
|
|
public let press = PassthroughSubject<Void, Never>() |
|
|
|
var subscriptions = [AnyCancellable]() |
|
|
|
|
|
|
|
init(_ key: String) { |
|
|
|
public init(_ key: String) { |
|
|
|
Bus.send( |
|
|
|
key, |
|
|
|
press.eraseToAnyPublisher(), |