//
//  MKAnnotationView+YSRACSignalSupport.h
//  ReactiveObjC
//
//  Created by Zak Remer on 3/31/15.
//  Copyright (c) 2015 GitHub. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <MapKit/MapKit.h>

@class YSRACSignal<__covariant ValueType>;
@class YSRACUnit;

NS_ASSUME_NONNULL_BEGIN

@interface MKAnnotationView (YSRACSignalSupport)

/// A signal which will send a YSRACUnit whenever -prepareForReuse is invoked upon
/// the receiver.
///
/// Examples
///
///  [[[self.cancelButton
///     ysrac_signalForControlEvents:UIControlEventTouchUpInside]
///     takeUntil:self.ysrac_prepareForReuseSignal]
///     subscribeNext:^(UIButton *x) {
///         // do other things
///     }];
@property (nonatomic, strong, readonly) YSRACSignal<YSRACUnit *> *ysrac_prepareForReuseSignal;

@end

NS_ASSUME_NONNULL_END
