import AppKit
import ReactiveSwift
import enum Result.NoError

extension Reactive where Base: NSObject, Base: NSView {
	public var prepareForReuse: Signal<(), NoError> {
		return trigger(for: #selector(base.prepareForReuse))
	}
}

extension Reactive where Base: NSObject, Base: NSCollectionViewElement {
	@available(macOS 10.11, *)
	public var prepareForReuse: Signal<(), NoError> {
		return trigger(for: #selector(base.prepareForReuse))
	}
}
