Skip to content

Instantly share code, notes, and snippets.

View elmetal's full-sized avatar

elmetal

  • 07:49 (UTC +09:00)
View GitHub Profile
import Combine
import UIKit
public protocol CombineCompatible {}
// MARK: - UIControl
public extension UIControl {
final class Subscription<SubscriberType: Subscriber, Control: UIControl>: Combine.Subscription where SubscriberType.Input == Control {
private var subscriber: SubscriberType?
private let input: Control