18 lines
294 B
Swift
18 lines
294 B
Swift
//
|
|
// Button+Publisher.swift
|
|
// VDS
|
|
//
|
|
// Created by Matt Bruce on 8/18/22.
|
|
//
|
|
|
|
import Foundation
|
|
import UIKit
|
|
import Combine
|
|
|
|
extension UIButton {
|
|
public var tapPublisher: AnyPublisher<UIButton, Never> {
|
|
publisher(for: .touchUpInside)
|
|
.eraseToAnyPublisher()
|
|
}
|
|
}
|