diff --git a/VDS/Publishers/UIControlPublisher.swift b/VDS/Publishers/UIControlPublisher.swift index 404fe7c5..dca48c3f 100644 --- a/VDS/Publishers/UIControlPublisher.swift +++ b/VDS/Publishers/UIControlPublisher.swift @@ -13,10 +13,12 @@ import Combine public final class UIControlSubscription: Subscription where SubscriberType.Input == Control { private var subscriber: SubscriberType? private let control: Control - + private let event: UIControl.Event + public init(subscriber: SubscriberType, control: Control, event: UIControl.Event) { self.subscriber = subscriber self.control = control + self.event = event //allow highlight for VDS.Controls on "onClick" events if let c = control as? VDS.Control, event == .touchUpInside { @@ -34,6 +36,13 @@ public final class UIControlSubscription